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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
xor edi, edi
lea edx, [eax + 0x10]
mov dword [esp + 0x1c], edi
cmp edx, ecx
jae 0x43e25a
cmp edx, 0x494988
jne 0x43e263
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
jmp 0x43e26c
mov edx, dword [edx + 8]
mov dword [esp + 0xc], edx
mov ebx, edx
add eax, 0x20
cmp eax, ecx
jae 0x43e31c
cmp eax, 0x494988
je 0x43e30c
mov edx, dword [eax + 8]
cmp edx, 3
jne 0x43e2ea
cmp eax, ecx
jb 0x43e293
mov eax, 0x494988
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x43e2c6
cmp ecx, 4
jne 0x43e2df
mov eax, dword [eax]
add eax, 0x10
lea edi, [esp + 0x10]
call fcn.00443120
test eax, eax
je 0x43e2df
fld qword [esp + 0x10]
mov dword [esp + 0x30], 3
fstp qword [esp + 0x28]
lea eax, [esp + 0x28]
fld qword [eax]
fadd qword [0x498c10]
fstp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x10], eax
jmp 0x43e352
xor eax, eax
movzx eax, ax
mov dword [esp + 0x10], eax
jmp 0x43e352
cmp edx, 2
jne 0x43e30c
cmp eax, ecx
jb 0x43e2f8
mov eax, 0x494988
cmp dword [eax + 8], 2
jne 0x43e306
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x43e352
mov dword [esp + 0x10], edi
jmp 0x43e352
cmp eax, ecx
jae 0x43e31c
cmp eax, 0x494988
je 0x43e31c
cmp dword [eax + 8], edi
jg 0x43e326
mov dword [esp + 0x10], 0x496e04
jmp 0x43e352
push 3
xor ebx, ebx
mov eax, esi
call fcn.0041e940
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43e34a
push 0x493fc8
lea edi, [eax + 3]
call fcn.004214c0
add esp, 4
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 4
jne 0x43e541
mov eax, dword [esi + 0xc]
add eax, 0x10
cmp eax, dword [esi + 8]
jb 0x43e36b
mov eax, 0x494988
mov ecx, dword [eax + 8]
cmp ecx, 4
je 0x43e3be
cmp ecx, 7
jne 0x43e385
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
jne 0x43e385
lea edi, [ecx + 0x18]
jmp 0x43e3c3
mov edi, dword [ebp + 8]
mov esi, eax
call fcn.004337c0
test eax, eax
jne 0x43e39a
mov esi, dword [ebp + 8]
xor edi, edi
jmp 0x43e3c3
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x44]
cmp edx, dword [eax + 0x40]
jb 0x43e3ac
mov eax, edi
call fcn.00433590
mov eax, dword [edi + 0xc]
add eax, 0x10
mov esi, edi
cmp eax, dword [edi + 8]
jb 0x43e3be
mov eax, 0x494988
mov edi, dword [eax]
add edi, 0x10
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
and edx, 0xfffffff0
cmp edx, 0x20
jne 0x43e532
add ecx, 0x10
cmp ecx, eax
jb 0x43e3e5
mov ecx, 0x494988
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
add dword [esi + 8], 0x10
lea esp, [esp]
or ebx, 0xffffffff
mov eax, esi
call fcn.00420ab0
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
add dword [esi + 8], 0xfffffff0
mov ebx, eax
test ebx, ebx
je 0x43e432
cmp ebx, 0xffffffff
jne 0x43e452
cmp byte [edi], 0x7e
jne 0x43e532
cmp byte [edi + 1], 0
je 0x43e532
inc edi
mov ebx, edi
call fcn.0041eb70
mov esi, dword [ebp + 8]
jmp 0x43e400
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
jne 0x43e47c
mov edx, eax
push edx
call fcn.0046c840
add esp, 4
mov edi, eax
jmp 0x43e4a9
mov edi, dword [esp + 0x1c]
call fcn.0041f7b0
test eax, eax
jne 0x43e490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax - 8], 7
mov esi, dword [ebp + 8]
jne 0x43e4a7
mov edi, dword [eax - 0x10]
add edi, 0x18
jmp 0x43e4a9
xor edi, edi
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x43e509
cmp dword [ebp + 0xc], 0
jne 0x43e4ff
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x43e4f5
test al, 1
jne 0x43e4f5
cmp byte [edi], 0xff
jne 0x43e4f5
cmp byte [edi + 1], 0xfe
jne 0x43e4f5
shr eax, 1
push eax
push edi
call fcn.0041eac0
add esp, 8
mov dword [esp + 0xc], 1
jmp 0x43e511
push eax
push edi
call fcn.0041ea80
add esp, 8
mov dword [esp + 0xc], 1
jmp 0x43e511
mov dword [esp + 0xc], 0
cmp dword [ebp + 0xc], 0
jne 0x43e520
push edi
call fcn.0046c806
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.00422600
mov dword [esp + 0x1c], eax
jmp 0x43e59c
cmp ebx, 3
jne 0x43e55a
push 2
push esi
call fcn.0041e5d0
movzx eax, ax
add esp, 8
mov dword [esp + 0x1c], eax
jmp 0x43e59c
cmp ebx, 2
jne 0x43e587
mov eax, dword [esi + 0xc]
add eax, 0x10
cmp eax, dword [esi + 8]
jb 0x43e56f
mov eax, 0x494988
cmp dword [eax + 8], 2
jne 0x43e57d
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jmp 0x43e59c
mov dword [esp + 0x1c], 0
jmp 0x43e59c
push 0x493fc8
mov edi, 2
call fcn.004214c0
mov esi, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add eax, 0x30
cmp eax, ecx
jae 0x43e5b6
cmp eax, 0x494988
je 0x43e5b6
cmp dword [eax + 8], 0
jg 0x43e5ba
xor eax, eax
jmp 0x43e5e8
cmp eax, ecx
jb 0x43e5c3
mov eax, 0x494988
cmp dword [eax + 8], 2
jne 0x43e60e
mov ebx, dword [eax]
test ebx, ebx
jne 0x43e5e6
mov edx, dword [0x4948fc]
push edx
mov edi, 4
call fcn.004214c0
mov esi, dword [ebp + 8]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push esi
call fcn.00420700
add esp, 0x10
xor edx, edx
cmp edx, eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x43e5cf