Function at 0x43f26c
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x470594
call fcn.00443729
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x68], 2
jae 0x43f360
push 0x138
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.00442700
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 0x43f2d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43f58d
cmp dword [ebp - 0x1ac], 0x138
je 0x43f2e7
mov eax, 0x103
jmp 0x43f58d
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 0x43f588
cmp dword [esi + 0x68], 4
jae 0x43f472
push 0x18
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00442700
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 0x43f2c6
cmp dword [ebp - 0x1ac], 0x18
jne 0x43f2dd
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.0044237d
push dword [ebp - 0x28]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.00442700
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 0x43f413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43f423
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1ac], eax
je 0x43f431
mov esi, 0x103
push edi
call fcn.0044246e
pop ecx
mov eax, esi
jmp 0x43f58d
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.0044246e
mov eax, dword [ebp - 0x28]
add eax, 0x18
jmp 0x43f584
push 0x30
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00442700
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 0x43f2c6
cmp dword [ebp - 0x1ac], 0x30
jne 0x43f2dd
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.0044237d
push dword [ebp - 0x40]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.00442700
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 0x43f409
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1ac], eax
jne 0x43f41e
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.0044246e
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.004436d8
ret 8