Function at 0x43f1b8
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x47050f
call fcn.004436e9
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x68], 2
jae 0x43f2ac
push 0x138
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.004426c0
add esp, 0xc
lea eax, [ebp - 0x1ac]
push edi
push eax
push 0x138
lea eax, [ebp - 0x1a8]
push eax
push ebx
mov dword [ebp - 0x1ac], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f21d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43f4d9
cmp dword [ebp - 0x1ac], 0x138
je 0x43f233
mov eax, 0x103
jmp 0x43f4d9
push 1
lea eax, [ebp - 0x1ad]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c97a
mov dword [ebp - 4], edi
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0040cdaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, dword [ebp - 0xa4]
mov dword [esi + 0x30], eax
mov ax, word [ebp - 0xa0]
mov word [esi + 0x34], ax
mov eax, dword [ebp - 0x9c]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x40], eax
mov ax, word [ebp - 0x90]
mov word [esi + 0x44], ax
mov eax, dword [ebp + 0xc]
add eax, 0x138
jmp 0x43f4d4
cmp dword [esi + 0x68], 4
jae 0x43f3be
push 0x18
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004426c0
add esp, 0xc
lea eax, [ebp - 0x1ac]
push edi
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x1ac], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f212
cmp dword [ebp - 0x1ac], 0x18
jne 0x43f229
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov dword [esi + 0x30], eax
mov ax, word [ebp - 0x20]
mov word [esi + 0x34], ax
mov eax, dword [ebp - 0x1e]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x1a]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x16]
mov dword [esi + 0x40], eax
mov ax, word [ebp - 0x12]
mov word [esi + 0x44], ax
call fcn.00442345
push dword [ebp - 0x28]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.004426c0
add esp, 0x10
lea eax, [ebp - 0x1ac]
push edi
mov edi, dword [ebp - 0x1b4]
push eax
push dword [ebp - 0x28]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f35f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43f36f
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1ac], eax
je 0x43f37d
mov esi, 0x103
push edi
call fcn.00442436
pop ecx
mov eax, esi
jmp 0x43f4d9
push 1
lea ecx, [ebp - 0x1ad]
push ecx
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0040cada
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0040cdaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push edi
call fcn.00442436
mov eax, dword [ebp - 0x28]
add eax, 0x18
jmp 0x43f4d0
push 0x30
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004426c0
add esp, 0xc
lea eax, [ebp - 0x1ac]
push edi
push eax
push 0x30
lea eax, [ebp - 0x40]
push eax
push ebx
mov dword [ebp - 0x1ac], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f212
cmp dword [ebp - 0x1ac], 0x30
jne 0x43f229
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x30], eax
mov ax, word [ebp - 0x38]
mov word [esi + 0x34], ax
mov eax, dword [ebp - 0x36]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x32]
push dword [ebp - 0x40]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x2e]
mov dword [esi + 0x40], eax
mov ax, word [ebp - 0x2a]
mov word [esi + 0x44], ax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x60], eax
call fcn.00442345
push dword [ebp - 0x40]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.004426c0
add esp, 0x10
lea eax, [ebp - 0x1ac]
push edi
mov edi, dword [ebp - 0x1b4]
push eax
push dword [ebp - 0x40]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f355
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1ac], eax
jne 0x43f36a
push 1
lea ecx, [ebp - 0x1ad]
push ecx
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0040cada
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0040cdaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push edi
call fcn.00442436
mov eax, dword [ebp - 0x40]
add eax, 0x30
add eax, dword [ebp + 0xc]
pop ecx
mov dword [esi + 0x48], eax
xor eax, eax
call fcn.00443698
ret 8