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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp + 0xc]
mov bl, 1
test bl, 1
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x80], eax
jne 0x43054a
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov cl, byte [ebp - 0x71]
test cl, 1
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], edx
jne 0x43056a
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.004057a0
mov ecx, SysReAllocStringLen
mov edx, 1
xor esi, esi
mov edi, 3
mov ebx, 0x80
mov dword [ebp - 0x8c], eax
mov eax, esp
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [eax], ecx
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x80
mov dword [eax + 0x10], 3
mov dword [eax + 0xc], 0
mov dword [eax + 8], 1
mov dword [eax + 4], SysStringLen
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], edi
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
lea ecx, [ebp - 0x44]
lea edx, [0x550e90]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], edx
mov edx, 0x558848
mov dword [ebp - 0x24], edx
mov edx, ebp
mov dword [ebp - 0x20], edx
mov edx, esp
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], 0x430837
mov dword [ebp - 0xa4], eax
mov eax, ecx
call fcn.00551af9
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xa4]
cmp ecx, eax
jne 0x43064e
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.00430870
jmp 0x43080c
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], 0
mov dword [ebp - 0xa8], eax
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x4306ab
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, dword [ebp - 0x84]
mov dword [esp], ecx
mov dword [ebp - 0xac], eax
call fcn.00430870
jmp 0x43080c
mov eax, esp
lea ecx, [ebp - 0x60]
mov dword [eax], ecx
mov dword [ebp - 0xb0], ecx
call fcn.00430870
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 1
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xb0]
mov dword [ecx], eax
call fcn.0043088c
jmp 0x4306db
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 2
mov ecx, esp
lea edx, [ebp - 0x60]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [ebp - 0xb4], eax
call fcn.0040be04
mov dword [ebp - 0xb8], eax
jmp 0x430706
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 3
mov ecx, esp
lea edx, [ebp - 0x6c]
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ecx], edx
mov dword [ecx + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
mov dword [ebp - 0xbc], eax
jmp 0x430743
mov eax, dword [ebp - 0xbc]
cmp eax, 0
jne 0x4307a8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 4
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0xc0], eax
jmp 0x43076c
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.00430870
mov dword [ebp - 0x70], 1
jmp 0x430801
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 5
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0xcc], eax
jmp 0x4307c6
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x50]
je 0x4307e5
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.00430870
mov dword [ebp - 0x70], 1
jmp 0x430801
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00430b1c
mov dword [ebp - 0x70], 1
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.00403a50
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00551b1a
mov eax, dword [ebp - 0x78]
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret