Function at 0x470bdd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4edcf0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.0048b22a
xor ebx, ebx
mov dword [esp + 0xec], ebx
lea eax, [esp + 0x14]
mov dword [esp], str.datautdata_tags
push eax
call fcn.00402a1b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x470e56
xor eax, eax
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
mov byte [esp + 0xf0], 1
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x470ce3
cmp dword [esp + 0x20], ebx
jl 0x470ce3
jg 0x470cb0
cmp dword [esp + 0x1c], ebx
jbe 0x470ce3
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
lea esi, [esp + 0x20]
push dword [esp + 0x28]
mov dword [esp + 0x38], ebx
call fcn.004052a5
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x28]
call fcn.00425915
mov esi, dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi - 4], 1
jle 0x470d04
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.00405314
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8], 2
call fcn.004cd8a0
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0xec], 3
call fcn.004cb610
push 1
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xf4], 4
call fcn.004cf460
test al, al
lea ecx, [esp + 0x2c]
je 0x470e1e
call fcn.004ca440
test al, al
jne 0x470e1a
lea ecx, [esp + 0x2c]
call fcn.004ca490
test al, al
je 0x470e1a
mov edi, 0x513e6c
push edi
lea ecx, [esp + 0x30]
call fcn.004cc850
mov ecx, eax
call fcn.004ca440
test al, al
jne 0x470e1a
push edi
lea ecx, [esp + 0x30]
call fcn.004cc850
mov ecx, eax
call fcn.004ca490
test al, al
je 0x470e1a
push 0x513e70
push edi
lea ecx, [esp + 0x34]
call fcn.004cc850
mov ecx, eax
call fcn.004cc850
mov ecx, eax
call fcn.004ca440
test al, al
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0x2c]
jne 0x470e26
call fcn.004cb760
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8], 2
call fcn.00422b34
lea ecx, [esp + 0x40]
mov byte [esp + 0xe8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
inc eax
jmp 0x470e64
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], 3
call fcn.004cb760
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8], 2
call fcn.00422b34
lea ecx, [esp + 0x40]
mov byte [esp + 0xe8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004d0736
mov esp, ebp
pop ebp
ret