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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4a0f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5550ec]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.00490a3b
xor ebx, ebx
mov dword [esp + 0xec], ebx
lea eax, [esp + 0x14]
mov dword [esp], str.datautdata_tags
push eax
call fcn.004029d7
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 0x4753b6
xor eax, eax
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
mov eax, dword [0x55a320]
mov ecx, 0x55a320
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 0x475243
cmp dword [esp + 0x20], ebx
jl 0x475243
jg 0x475210
cmp dword [esp + 0x1c], ebx
jbe 0x475243
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.00405519
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x28]
call fcn.00426d7e
mov esi, dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi - 4], 1
jle 0x475264
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.00405588
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.004d3270
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0xec], 3
call fcn.004d0f50
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.004d4e30
test al, al
lea ecx, [esp + 0x2c]
je 0x47537e
call fcn.004cfc60
test al, al
jne 0x47537a
lea ecx, [esp + 0x2c]
call fcn.004cfcb0
test al, al
je 0x47537a
mov edi, 0x51cc2c
push edi
lea ecx, [esp + 0x30]
call fcn.004d2220
mov ecx, eax
call fcn.004cfc60
test al, al
jne 0x47537a
push edi
lea ecx, [esp + 0x30]
call fcn.004d2220
mov ecx, eax
call fcn.004cfcb0
test al, al
je 0x47537a
push 0x51cc30
push edi
lea ecx, [esp + 0x34]
call fcn.004d2220
mov ecx, eax
call fcn.004d2220
mov ecx, eax
call fcn.004cfc60
test al, al
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0x2c]
jne 0x475386
call fcn.004d1130
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8], 2
call fcn.00423072
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 0x4753c4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], 3
call fcn.004d1130
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe8], 2
call fcn.00423072
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.004d6e66
mov esp, ebp
pop ebp
ret