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

Disassembly:
push 0x72c
mov eax, 0x4ee0e3
call fcn.00495bb6
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4f8]
call fcn.004314e3
xor edi, edi
lea ecx, [ebp - 0x4f8]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.00436846
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0042f1ba
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.0043391c
push eax
lea ecx, [ebp - 0x94]
call fcn.0042f1ba
mov byte [ebp - 4], 2
call fcn.00433928
mov ecx, eax
call fcn.0042fcb7
test al, al
je 0x4473fb
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0042f5e3
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_1
lea ecx, [ebp - 0x94]
call fcn.0042fad9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x72c], eax
cmp eax, 0xffffffff
jne 0x4473a5
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0042f32e
jmp 0x447592
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x447391
push ebx
mov dword [ebp - 0x734], edi
call fcn.004954b1
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x734]
push eax
push ebx
push esi
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x734], ebx
je 0x44757b
push esi
call fcn.00495de5
pop ecx
mov esi, edi
jmp 0x447391
call fcn.00433928
push eax
lea ecx, [ebp - 0x94]
call fcn.0042f5e3
call fcn.00433c95
test al, al
je 0x447422
call fcn.0043392e
mov dword [ebp - 0x72c], eax
jmp 0x447491
call fcn.00433934
push eax
lea ecx, [ebp - 0x220]
call fcn.0042f1ba
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0042fad9
push eax
call fcn.004534f5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x730], eax
call fcn.0042fad9
push eax
call fcn.0045add6
mov dword [ebp - 0x72c], eax
mov eax, dword [ebp - 0x730]
pop ecx
pop ecx
test eax, eax
je 0x44747c
push eax
call fcn.00495de5
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0042f32e
mov eax, dword [ebp - 0x72c]
test eax, eax
je 0x447391
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x738], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0042f1ba
push 0x4fd6dc
push 0x4fd6e0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0042ff02
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x738]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0042f4fb
push eax
push dword [ebp - 0x72c]
call fcn.0045a581
add esp, 0x14
test eax, eax
je 0x447508
lea ecx, [ebp - 0x118]
call fcn.0042f32e
jmp 0x447391
mov ebx, dword [ebp - 0x4fc]
test ebx, ebx
je 0x4474f8
push ebx
call fcn.004954b1
push ebx
mov esi, eax
push esi
push dword [ebp - 0x738]
push dword [ebp - 0x72c]
call fcn.0045b2a1
add esp, 0x14
test eax, eax
je 0x44755b
cmp eax, 0x600
je 0x44755b
push esi
call fcn.00495de5
pop ecx
mov esi, edi
call fcn.00433c95
test al, al
jne 0x4474f8
push dword [ebp - 0x72c]
call fcn.0045a364
pop ecx
jmp 0x4474f8
call fcn.00433c95
test al, al
jne 0x447570
push dword [ebp - 0x72c]
call fcn.0045a364
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0042f32e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0042f32e
test esi, esi
jne 0x447613
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_1
lea ecx, [ebp - 0x19c]
call fcn.0042f4fb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x72c], eax
cmp eax, 0xffffffff
je 0x44760f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x44760f
push ebx
mov dword [ebp - 0x730], edi
call fcn.004954b1
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x730]
push eax
push ebx
push esi
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x730], ebx
je 0x44760f
push esi
call fcn.00495de5
pop ecx
mov esi, edi
test esi, esi
je 0x447625
push ebx
push esi
call fcn.00447276
push esi
mov edi, eax
call fcn.00495de5
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0042f32e
lea ecx, [ebp - 0x4f8]
call fcn.0040d203
mov eax, edi
call fcn.00495b60
ret