Function at 0x43ef54
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x47017f
call fcn.00443402
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x68], 2
jae 0x43f048
push 0x138
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.004423c0
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 0x43efb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43f275
cmp dword [ebp - 0x1ac], 0x138
je 0x43efcf
mov eax, 0x103
jmp 0x43f275
push 1
lea eax, [ebp - 0x1ad]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040caac
mov dword [ebp - 4], edi
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0040cfc5
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 0x43f270
cmp dword [esi + 0x68], 4
jae 0x43f15a
push 0x18
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004423c0
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 0x43efae
cmp dword [ebp - 0x1ac], 0x18
jne 0x43efc5
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.0044203b
push dword [ebp - 0x28]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.004423c0
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 0x43f0fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43f10b
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1ac], eax
je 0x43f119
mov esi, 0x103
push edi
call fcn.0044212c
pop ecx
mov eax, esi
jmp 0x43f275
push 1
lea ecx, [ebp - 0x1ad]
push ecx
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0040cc0c
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0040cfc5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push edi
call fcn.0044212c
mov eax, dword [ebp - 0x28]
add eax, 0x18
jmp 0x43f26c
push 0x30
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004423c0
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 0x43efae
cmp dword [ebp - 0x1ac], 0x30
jne 0x43efc5
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.0044203b
push dword [ebp - 0x40]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.004423c0
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 0x43f0f1
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1ac], eax
jne 0x43f106
push 1
lea ecx, [ebp - 0x1ad]
push ecx
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0040cc0c
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0040cfc5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push edi
call fcn.0044212c
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.004433b1
ret 8