Function at 0x420a70
Capabilities:
Get file size

Disassembly:
mov eax, 0x7d308
call fcn.004453a0
mov eax, dword [0x4595b8]
xor eax, esp
mov dword [esp + 0x7d304], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 8], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, dword [edi + 0x4c]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xd
mov dword [esp + 8], eax
jae 0x420ad5
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
pop ebx
mov ecx, dword [esp + 0x7d304]
xor ecx, esp
call fcn.004451f4
add esp, 0x7d308
ret
push esi
lea ecx, [esp + 0x48]
call fcn.0043a700
lea edx, [esp + 0x10]
mov esi, 1
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2fc], esi
mov dword [esp + 0x300], esi
call fcn.00437be0
push eax
lea ecx, [esp + 0x30]
call dword [0x44929c]
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x40], ebx
je 0x420c74
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x30c], eax
mov dword [esp + 0x310], eax
mov dword [esp + 0x314], eax
mov word [esp + 0x318], ax
mov eax, dword [edi + 0x4c]
push eax
call fcn.0042a3f0
mov edx, dword [edi + 0x4c]
push 0xe
lea ecx, [esp + 0x314]
push ecx
push edx
call fcn.0042a480
add esp, 0x1c
test eax, eax
je 0x420c74
movzx eax, byte [esp + 0x300]
sub eax, 0x46
jne 0x420b8f
movzx eax, byte [esp + 0x301]
sub eax, 0x4c
jne 0x420b8f
movzx eax, byte [esp + 0x302]
sub eax, 0x56
je 0x420b9a
test eax, eax
mov ecx, esi
jg 0x420b9c
or ecx, 0xffffffff
jmp 0x420b9c
xor ecx, ecx
test ecx, ecx
je 0x420c26
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x420c1e
lea esp, [esp]
mov esi, eax
sub esi, ebx
cmp esi, 0x7d000
jb 0x420bc1
mov esi, 0x7d000
push 0
sub eax, esi
sub eax, ebx
push 0
push eax
mov eax, dword [edi + 0x4c]
push eax
call fcn.0042a3f0
mov edx, dword [edi + 0x4c]
push esi
lea ecx, [esp + 0x324]
push ecx
push edx
call fcn.0042a480
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0x4c]
sub eax, esi
push 0
sub eax, ebx
add eax, dword [esp + 0x2c]
push 0
push eax
push ecx
call fcn.0042a3f0
mov eax, dword [edi + 0x4c]
push esi
lea edx, [esp + 0x340]
push edx
push eax
call fcn.0042a450
mov eax, dword [esp + 0x44]
add ebx, esi
add esp, 0x38
cmp ebx, eax
jb 0x420bb0
add eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0x4c]
push 0
push 0
push 0
push ecx
call fcn.0042a3f0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp dword [esp + 0x44], 0x10
jae 0x420c47
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [edi + 0x4c]
push eax
call fcn.0042a450
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x4c]
push 0
push 0
push ecx
push edx
call fcn.0042a3f0
mov eax, dword [edi + 0x4c]
push eax
call fcn.0042a4c0
add esp, 0x20
lea ecx, [esp + 0x48]
call fcn.0043a5c0
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x7d310]
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.004451f4
add esp, 0x7d308
ret