Function at 0x4070c3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.00444090
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.00407707
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x18], eax
je 0x407316
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x40730d
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push esi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call fcn.00408225
mov byte [edi + esi], bl
add esp, 0xc
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x417]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x418], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x2037]
push ebx
xor esi, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov byte [ebp - 0x2038], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x141c
lea eax, [ebp - 0x1c38]
push ebx
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004067c6
test eax, eax
je 0x407304
jmp 0x407191
mov esi, dword [ebp - 4]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
jle 0x4072e6
lea eax, [ebp - 0x418]
push 0x44a318
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4071e7
cmp dword [ebp - 8], ebx
je 0x4071d8
mov byte [ebp - 0x1c38], bl
mov byte [ebp - 0x1838], bl
mov byte [ebp - 0x1438], bl
mov byte [ebp - 0x1038], bl
mov byte [ebp - 0x2038], bl
jmp 0x4071df
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
jmp 0x4072e6
cmp dword [ebp - 8], ebx
je 0x4072e6
cmp esi, ebx
jne 0x407203
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x2038]
jmp 0x40723d
cmp esi, 1
jne 0x407217
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1438]
jmp 0x40723d
cmp esi, 2
jne 0x40722b
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1c38]
jmp 0x40723d
cmp esi, 3
jne 0x40724a
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1038]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
jmp 0x4072e3
cmp esi, 4
jne 0x4072bf
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1838]
push eax
call sub.msvcrt.dll_strcpy
push edi
lea eax, [ebp - 0x817]
push ebx
push eax
mov byte [ebp - 0x818], bl
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 0xc]
call fcn.00408452
pop ecx
pop ecx
push dword [ebp + 0x14]
lea eax, [ebp - 0x818]
push dword [ebp + 0x10]
lea esi, [ebp - 0x2038]
push eax
push dword [ebp + 8]
call fcn.0040695a
mov byte [ebp - 0x1c38], bl
mov byte [ebp - 0x1838], bl
mov byte [ebp - 0x1438], bl
mov byte [ebp - 0x1038], bl
jmp 0x4072e3
jle 0x4072e3
cmp byte [ebp - 0x418], bl
je 0x4072e0
lea eax, [ebp - 0x418]
push 0x44a31c
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4072e3
mov dword [ebp - 4], ebx
inc dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004067c6
test eax, eax
jne 0x40718e
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0x10