Function at 0x43f210
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x470165
call fcn.00443652
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x68], 2
jae 0x43f304
push 0x138
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.00442610
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 0x43f275
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43f531
cmp dword [ebp - 0x1ac], 0x138
je 0x43f28b
mov eax, 0x103
jmp 0x43f531
push 1
lea eax, [ebp - 0x1ad]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cac1
mov dword [ebp - 4], edi
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0040cf65
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 0x43f52c
cmp dword [esi + 0x68], 4
jae 0x43f416
push 0x18
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00442610
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 0x43f26a
cmp dword [ebp - 0x1ac], 0x18
jne 0x43f281
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.00442291
push dword [ebp - 0x28]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.00442610
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 0x43f3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43f3c7
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1ac], eax
je 0x43f3d5
mov esi, 0x103
push edi
call fcn.00442382
pop ecx
mov eax, esi
jmp 0x43f531
push 1
lea ecx, [ebp - 0x1ad]
push ecx
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0040cc21
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0040cf65
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push edi
call fcn.00442382
mov eax, dword [ebp - 0x28]
add eax, 0x18
jmp 0x43f528
push 0x30
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00442610
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 0x43f26a
cmp dword [ebp - 0x1ac], 0x30
jne 0x43f281
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.00442291
push dword [ebp - 0x40]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.00442610
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 0x43f3ad
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1ac], eax
jne 0x43f3c2
push 1
lea ecx, [ebp - 0x1ad]
push ecx
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0040cc21
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0040cf65
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push edi
call fcn.00442382
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.00443601
ret 8