Function at 0x440b05
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x47b7c0
call fcn.00444285
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x68], 2
jae 0x440bf4
push 0x138
lea eax, [ebp - 0x1a8]
push esi
push eax
call fcn.004523f0
add esp, 0xc
mov dword [ebp - 0x1ac], esi
lea eax, [ebp - 0x1ac]
push esi
push eax
push 0x138
lea eax, [ebp - 0x1a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x440b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x440e3c
cmp dword [ebp - 0x1ac], 0x138
jne 0x440d4f
push 1
lea eax, [ebp - 0x1ad]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041074a
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 4]
call fcn.00407b10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404d40
mov eax, dword [ebp - 0xa4]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0xa0]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x90]
mov word [edi + 0x44], ax
mov eax, dword [ebp + 0xc]
add eax, 0x138
jmp 0x440e37
cmp dword [edi + 0x68], 4
jae 0x440d14
push 0x18
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004523f0
add esp, 0xc
mov dword [ebp - 0x1ac], esi
lea eax, [ebp - 0x1ac]
push esi
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440b5f
cmp dword [ebp - 0x1ac], 0x18
jne 0x440d4f
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0x20]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x1e]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x1a]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x16]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x12]
mov word [edi + 0x44], ax
call fcn.00444353
push dword [ebp - 0x28]
mov dword [ebp - 0x1b4], eax
push esi
push eax
call fcn.004523f0
add esp, 0x10
lea eax, [ebp - 0x1ac]
push esi
mov esi, dword [ebp - 0x1b4]
push eax
push dword [ebp - 0x28]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x440ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x440cb7
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1ac], eax
je 0x440ccd
mov esi, 0x103
push 1
push dword [ebp - 0x1b4]
call fcn.00443fae
pop ecx
pop ecx
mov eax, esi
jmp 0x440e3c
push 1
lea ecx, [ebp - 0x1ad]
shr eax, 1
push ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004108a8
mov dword [ebp - 4], 2
add eax, 4
push eax
lea ecx, [edi + 4]
call fcn.00407b10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404d40
push 1
push esi
call fcn.00443fae
mov eax, dword [ebp - 0x28]
add eax, 0x18
jmp 0x440e32
push 0x30
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004523f0
add esp, 0xc
mov dword [ebp - 0x1ac], esi
lea eax, [ebp - 0x1ac]
push esi
push eax
push 0x30
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440b5f
cmp dword [ebp - 0x1ac], 0x30
je 0x440d59
mov eax, 0x103
jmp 0x440e3c
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x40]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0x38]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x36]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x32]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x2e]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x2a]
mov word [edi + 0x44], ax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x4c], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x50], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x58], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], ecx
call fcn.00444353
push dword [ebp - 0x40]
mov dword [ebp - 0x1b4], eax
push esi
push eax
call fcn.004523f0
add esp, 0x10
lea eax, [ebp - 0x1ac]
push esi
mov esi, dword [ebp - 0x1b4]
push eax
push dword [ebp - 0x40]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440c9d
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1ac], eax
jne 0x440cb2
push 1
lea ecx, [ebp - 0x1ad]
shr eax, 1
push ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004108a8
mov dword [ebp - 4], 4
add eax, 4
push eax
lea ecx, [edi + 4]
call fcn.00407b10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404d40
push 1
push esi
call fcn.00443fae
mov eax, dword [ebp - 0x40]
add eax, 0x30
add eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [edi + 0x48], eax
xor eax, eax
call fcn.00444234
ret 8