Function at 0x402da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x422050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x130]
push ecx
call fcn.0040ad8a
add esp, 0xc
test eax, eax
je 0x402df5
mov edx, dword [ebp - 0x2c]
mov dword [edx], 0xffffffff
jmp 0x40304d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x130]
push ecx
push 0x1e
push 1
lea edx, [ebp - 0x24]
push edx
call fcn.0040a9a5
add esp, 0x10
cmp eax, 0x1e
je 0x402e22
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0xffffffff
jmp 0x40304d
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0
je 0x402e5a
mov dword [ebp - 0x30], 0
jmp 0x402e3d
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x1e
jae 0x402e5a
mov eax, dword [ebp - 0x30]
movsx ecx, byte [ebp + eax - 0x24]
xor ecx, 0xed
mov edx, dword [ebp - 0x30]
mov byte [ebp + edx - 0x24], cl
jmp 0x402e34
movzx eax, byte [ebp - 0x24]
movzx ecx, byte [ebp - 0x23]
shl ecx, 8
or eax, ecx
movzx edx, byte [ebp - 0x22]
shl edx, 0x10
or eax, edx
movzx ecx, byte [ebp - 0x21]
shl ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 0x28]
mov dword [edx], eax
movzx eax, byte [ebp - 0x20]
movzx ecx, byte [ebp - 0x1f]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 4], ax
movzx eax, byte [ebp - 0x1e]
movzx ecx, byte [ebp - 0x1d]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 6], ax
movzx eax, byte [ebp - 0x1c]
movzx ecx, byte [ebp - 0x1b]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 8], ax
movzx eax, byte [ebp - 0x1a]
movzx ecx, byte [ebp - 0x19]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 0xa], ax
movzx eax, byte [ebp - 0x18]
movzx ecx, byte [ebp - 0x17]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 0xc], ax
movzx eax, byte [ebp - 0x16]
movzx ecx, byte [ebp - 0x15]
shl ecx, 8
or eax, ecx
movzx edx, byte [ebp - 0x14]
shl edx, 0x10
or eax, edx
movzx ecx, byte [ebp - 0x13]
shl ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x10], eax
movzx eax, byte [ebp - 0x12]
movzx ecx, byte [ebp - 0x11]
shl ecx, 8
or eax, ecx
movzx edx, byte [ebp - 0x10]
shl edx, 0x10
or eax, edx
movzx ecx, byte [ebp - 0xf]
shl ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14], eax
movzx eax, byte [ebp - 0xe]
movzx ecx, byte [ebp - 0xd]
shl ecx, 8
or eax, ecx
movzx edx, byte [ebp - 0xc]
shl edx, 0x10
or eax, edx
movzx ecx, byte [ebp - 0xb]
shl ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x18], eax
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 0x1c], ax
movzx eax, byte [ebp - 8]
movzx ecx, byte [ebp - 7]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 0x1e], ax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x4034b50
jne 0x402f8f
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1c]
test edx, edx
jne 0x402f9d
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0xffffffff
jmp 0x40304d
push 0x100
push 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x20
push ecx
call fcn.004066e0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x130]
push eax
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x28]
add eax, 0x20
push eax
call fcn.0040a9a5
add esp, 0x10
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1c]
cmp eax, edx
je 0x402fec
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0xffffffff
jmp 0x40304d
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0
je 0x40302d
mov dword [ebp - 0x34], 0
jmp 0x403007
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x1c]
cmp dword [ebp - 0x34], ecx
jge 0x40302d
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x34]
movsx eax, byte [edx + 0x20]
xor eax, 0xed
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x34]
mov byte [ecx + 0x20], al
jmp 0x402ffe
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1c]
lea eax, [eax + edx + 0x1e]
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 0x1e]
add eax, edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b9a
mov esp, ebp
pop ebp
ret