Function at 0x403be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
movzx eax, byte [ebp + 0xc]
cmp eax, 1
jne 0x403c13
mov dword [ebp - 0xc], 0x7000
mov dword [ebp - 0x14], 0xe0000
mov dword [ebp - 8], 0xe706a
mov dword [ebp - 0x18], 0x100000
jmp 0x403d1a
movzx ecx, byte [ebp + 0xc]
cmp ecx, 2
jne 0x403c3d
mov dword [ebp - 0xc], 0xe000
mov dword [ebp - 0x14], 0xe0000
mov dword [ebp - 8], 0xe706a
mov dword [ebp - 0x18], 0x100000
jmp 0x403d1a
movzx edx, byte [ebp + 0xc]
cmp edx, 3
jne 0x403c67
mov dword [ebp - 0xc], 0x10000
mov dword [ebp - 0x14], 0x1e0000
mov dword [ebp - 8], 0x1e706a
mov dword [ebp - 0x18], 0x200000
jmp 0x403d1a
movzx eax, byte [ebp + 0xc]
cmp eax, 4
jne 0x403c91
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x1d8000
mov dword [ebp - 8], 0x1ec054
mov dword [ebp - 0x18], 0x200000
jmp 0x403d1a
movzx ecx, byte [ebp + 0xc]
cmp ecx, 5
jne 0x403cb8
mov dword [ebp - 0xc], 0x7000
mov dword [ebp - 0x14], 0xe7000
mov dword [ebp - 8], 0xe706a
mov dword [ebp - 0x18], 0x100000
jmp 0x403d1a
movzx edx, byte [ebp + 0xc]
cmp edx, 6
jne 0x403d13
mov dword [ebp - 0x18], 0x40000
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043d9d6
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x44], eax
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 1
jmp 0x403e72
xor eax, eax
jmp 0x403e72
push 1
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043d9d6
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x44], eax
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
mov word [ebp - 0x10], dx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x403d70
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x14]
jae 0x403da4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 4]
movzx eax, byte [ecx + edx + 1]
shl eax, 8
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp - 4]
movzx edx, byte [edx + ecx]
add eax, edx
movzx ecx, word [ebp - 0x10]
add ecx, eax
mov word [ebp - 0x10], cx
jmp 0x403d67
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 8]
movzx edx, byte [eax + ecx]
movzx eax, word [ebp - 0x10]
and eax, 0xff
movzx ecx, al
cmp edx, ecx
jne 0x403dec
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 8]
movzx edx, byte [eax + ecx + 1]
movzx eax, word [ebp - 0x10]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp edx, ecx
jne 0x403dec
mov eax, 1
jmp 0x403e72
movzx edx, byte [ebp + 0xc]
cmp edx, 4
jne 0x403e3c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx]
movzx ecx, word [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
movzx edx, cl
cmp eax, edx
jne 0x403e3c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx + 1]
movzx ecx, word [ebp - 0x10]
and ecx, 0xff
movzx edx, cl
cmp eax, edx
jne 0x403e3c
mov eax, 1
jmp 0x403e72
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x457c58
call fcn.00404bd0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x54
call fcn.00406580
mov ecx, dword [ebp - 0x20]
add ecx, 0x54
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x54]
mov eax, dword [edx + 0x14c]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8