Function at 0x447d91
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2040
call fcn.004516d0
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00446454
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x14], eax
je 0x447fe6
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x447fdd
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 - 0x14]
mov dword [ebp - 0x1c], edi
call fcn.004459ef
add esp, 0xc
mov byte [edi + esi], bl
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x41b]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x41c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x203b]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x203c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x141c
lea eax, [ebp - 0x1c3c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x447fbc
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
jle 0x447fb6
push 2
mov edi, 0x4529e8
lea esi, [ebp - 0x41c]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x447e95
cmp dword [ebp - 0xc], ebx
je 0x447e86
mov byte [ebp - 0x1c3c], bl
mov byte [ebp - 0x183c], bl
mov byte [ebp - 0x143c], bl
mov byte [ebp - 0x103c], bl
mov byte [ebp - 0x203c], bl
jmp 0x447e8d
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
jmp 0x447fb6
cmp dword [ebp - 0xc], ebx
je 0x447fb6
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x447ebf
xor eax, eax
mov cl, byte [ebp + eax - 0x41c]
mov byte [ebp + eax - 0x203c], cl
inc eax
cmp cl, bl
jne 0x447ea7
jmp 0x447fb3
cmp eax, 1
jne 0x447ede
xor eax, eax
mov cl, byte [ebp + eax - 0x41c]
mov byte [ebp + eax - 0x143c], cl
inc eax
cmp cl, bl
jne 0x447ec6
jmp 0x447fb3
cmp eax, 2
jne 0x447efd
xor eax, eax
mov cl, byte [ebp + eax - 0x41c]
mov byte [ebp + eax - 0x1c3c], cl
inc eax
cmp cl, bl
jne 0x447ee5
jmp 0x447fb3
cmp eax, 3
jne 0x447f1c
xor eax, eax
mov cl, byte [ebp + eax - 0x41c]
mov byte [ebp + eax - 0x103c], cl
inc eax
cmp cl, bl
jne 0x447f04
jmp 0x447fb3
cmp eax, 4
jne 0x447f92
xor eax, eax
mov cl, byte [ebp + eax - 0x41c]
mov byte [ebp + eax - 0x183c], cl
inc eax
cmp cl, bl
jne 0x447f23
push 0x3ff
lea eax, [ebp - 0x81b]
push ebx
push eax
mov byte [ebp - 0x81c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
push 0x45252c
call fcn.004456a9
pop ecx
pop ecx
push dword [ebp + 0x10]
lea esi, [ebp - 0x203c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00447bd3
mov byte [ebp - 0x1c3c], bl
mov byte [ebp - 0x183c], bl
mov byte [ebp - 0x143c], bl
mov byte [ebp - 0x103c], bl
jmp 0x447fb3
jle 0x447fb3
cmp byte [ebp - 0x41c], bl
je 0x447fb0
push 4
mov edi, 0x4529ec
lea esi, [ebp - 0x41c]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x447fb3
mov dword [ebp - 8], ebx
inc dword [ebp - 8]
inc dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x41c]
push eax
mov ebx, edi
call fcn.00447aa1
test eax, eax
jne 0x447e42
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc