Function at 0x455f35
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x49ff38
call fcn.00459b85
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x68], 2
jae 0x456024
push 0x138
lea eax, [ebp - 0x1a8]
push esi
push eax
call fcn.004714b0
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 0x455f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45626c
cmp dword [ebp - 0x1ac], 0x138
jne 0x45617f
push 1
lea eax, [ebp - 0x1ad]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041088a
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 4]
call fcn.00407b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404cc0
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 0x456267
cmp dword [edi + 0x68], 4
jae 0x456144
push 0x18
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004714b0
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 0x455f8f
cmp dword [ebp - 0x1ac], 0x18
jne 0x45617f
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.00459c53
push dword [ebp - 0x28]
mov dword [ebp - 0x1b4], eax
push esi
push eax
call fcn.004714b0
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 0x4560d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4560e7
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1ac], eax
je 0x4560fd
mov esi, 0x103
push 1
push dword [ebp - 0x1b4]
call fcn.004598ae
pop ecx
pop ecx
mov eax, esi
jmp 0x45626c
push 1
lea ecx, [ebp - 0x1ad]
shr eax, 1
push ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004109e8
mov dword [ebp - 4], 2
add eax, 4
push eax
lea ecx, [edi + 4]
call fcn.00407b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404cc0
push 1
push esi
call fcn.004598ae
mov eax, dword [ebp - 0x28]
add eax, 0x18
jmp 0x456262
push 0x30
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004714b0
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 0x455f8f
cmp dword [ebp - 0x1ac], 0x30
je 0x456189
mov eax, 0x103
jmp 0x45626c
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.00459c53
push dword [ebp - 0x40]
mov dword [ebp - 0x1b4], eax
push esi
push eax
call fcn.004714b0
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 0x4560cd
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1ac], eax
jne 0x4560e2
push 1
lea ecx, [ebp - 0x1ad]
shr eax, 1
push ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004109e8
mov dword [ebp - 4], 4
add eax, 4
push eax
lea ecx, [edi + 4]
call fcn.00407b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404cc0
push 1
push esi
call fcn.004598ae
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.00459b34
ret 8