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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbdbb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2dc], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c8], ebx
call fcn.004288f0
push eax
lea ecx, [ebp - 0x94]
call fcn.004221e0
mov dword [ebp - 4], 0
call fcn.00428900
mov ecx, eax
call fcn.00422e30
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
je 0x472815
push ebx
lea ecx, [ebp - 0x94]
call fcn.004225e0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00422bd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x472799
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.00422340
jmp 0x472a44
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x4727bb
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a3e
push esi
mov dword [ebp - 0x2cc], 0
call fcn.00490324
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2cc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x472a24
push edi
call fcn.0048ffe3
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a3e
call fcn.00428bc0
test al, al
jne 0x472932
call fcn.00428900
push eax
lea ecx, [ebp - 0x94]
call fcn.004225c0
call fcn.00428b70
test al, al
je 0x472843
call fcn.00428910
jmp 0x47285b
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.00422bd0
push eax
call fcn.0043f970
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x472878
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a44
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2c8]
push ebx
call fcn.0043f280
add esp, 0x14
test eax, eax
je 0x4728b2
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a44
mov esi, dword [ebp - 0x98]
test esi, esi
jne 0x4728d3
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a3e
push esi
call fcn.00490324
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0043fe00
add esp, 0x18
test eax, eax
je 0x47291a
cmp eax, 0x600
je 0x47291a
push edi
call fcn.0048ffe3
add esp, 4
call fcn.00428b70
test al, al
jne 0x4727fe
push ebx
call fcn.0043f060
jmp 0x4727fb
call fcn.00428b70
test al, al
jne 0x472a24
push ebx
call fcn.0043f060
jmp 0x472a21
call fcn.00428900
push eax
lea ecx, [ebp - 0x94]
call fcn.004225c0
call fcn.00428b70
test al, al
je 0x472953
call fcn.00428910
jmp 0x47296b
push 0
push 0
lea ecx, [ebp - 0x94]
call fcn.00422bd0
push eax
call fcn.00443e30
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x472988
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a44
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2c8]
push ebx
call fcn.00443730
add esp, 0x10
test eax, eax
je 0x4729c0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
jmp 0x472a44
mov esi, dword [ebp - 0x2e4]
test esi, esi
je 0x4727fe
push esi
call fcn.00490324
mov edi, eax
push edi
push dword [ebp - 0x2d8]
push ebx
call fcn.004440a0
add esp, 0x10
test eax, eax
je 0x472a12
cmp eax, 0x600
je 0x472a12
push edi
call fcn.0048ffe3
add esp, 4
call fcn.00428b70
test al, al
jne 0x4727fe
push ebx
call fcn.00443640
jmp 0x4727fb
call fcn.00428b70
test al, al
jne 0x472a24
push ebx
call fcn.00443640
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00422340
test edi, edi
jne 0x472abf
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472abb
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x472abb
push esi
mov dword [ebp - 0x2d0], 0
call fcn.00490324
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2d0]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x472ab7
push edi
call fcn.0048ffe3
add esp, 4
xor eax, eax
jmp 0x472adb
test edi, edi
jne 0x472abf
xor eax, eax
jmp 0x472adb
mov ecx, dword [ebp - 0x2dc]
push esi
push edi
call fcn.00472b00
push 1
push edi
mov esi, eax
call fcn.0048fd03
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret 4