Function at 0x4010e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 0x14], 0
mov dword [0x458fb8], 0
mov dword [0x458d20], 0
mov dword [0x458d24], 0
mov eax, dword [ebp + 0xc]
mov dword [0x458d2c], eax
mov dword [0x458d28], 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x401140
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40116c
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042c300
add esp, 8
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0042f1db
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042c380
add esp, 4
push 0x447430
lea edx, [ebp - 0x22c]
push edx
call fcn.0042e81b
add esp, 8
mov dword [0x458fe4], eax
cmp dword [0x458fe4], 0
jne 0x401196
or eax, 0xffffffff
jmp 0x40145b
cmp dword [ebp + 0xc], 0
jle 0x4011b1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x458fe4]
push ecx
call fcn.0042e105
add esp, 0xc
mov edx, dword [0x458fe4]
push edx
push 1
push 0x10
push 0x458d30
call fcn.0042dfca
add esp, 0x10
mov eax, dword [0x458d34]
add eax, dword [ebp + 0xc]
mov dword [0x458fb8], eax
mov ecx, dword [0x458d38]
mov dword [0x458fd4], ecx
mov edx, dword [0x458fe4]
push edx
call fcn.0042dc95
add esp, 4
mov eax, 1
shl eax, 2
mov byte [eax + 0x458d30], 0
push str.DPMX
push 0x458d30
call fcn.0042f120
add esp, 8
test eax, eax
je 0x40121e
or eax, 0xffffffff
jmp 0x40145b
mov ecx, dword [0x458d3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x458fd4]
shl edx, 5
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042e932
add esp, 4
mov dword [0x458d28], eax
cmp dword [0x458d28], 0
jne 0x401262
or eax, 0xffffffff
jmp 0x40145b
push 0x447440
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0042e81b
add esp, 8
mov dword [0x458fe4], eax
cmp dword [ebp + 0xc], 0
jle 0x401295
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x458fe4]
push eax
call fcn.0042e105
add esp, 0xc
mov ecx, dword [0x458fe4]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x458d28]
push eax
call fcn.0042dfca
add esp, 0x10
mov ecx, dword [0x458fe4]
push ecx
call fcn.0042dc95
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
sar eax, 0x18
and eax, 0xff
cdq
mov ecx, 7
idiv ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 0xffffffff
je 0x40138f
push 0x447448
lea edx, [ebp - 0x22c]
push edx
call fcn.0042e81b
add esp, 8
mov dword [0x458fe4], eax
cmp dword [ebp + 0xc], 0
jle 0x401321
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x458fe4]
push ecx
call fcn.0042e105
add esp, 0xc
mov edx, 1
test edx, edx
je 0x40135a
mov eax, dword [0x458fe4]
push eax
call fcn.0042dd0c
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x401343
jmp 0x40135a
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401321
mov eax, dword [0x458fe4]
push eax
call fcn.0042dc95
add esp, 4
mov ecx, dword [ebp - 8]
and ecx, 0xffff
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 8]
je 0x401386
mov eax, 0xfffffffe
jmp 0x40145b
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4013ae
mov dword [0x458fd8], 0xaa
mov dword [0x458fdc], 0x55
jmp 0x40143b
lea ecx, [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx + eax]
mov edx, 1
shl edx, 1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + edx]
imul eax, edx
cdq
mov ecx, 3
idiv ecx
xor eax, dword [ebp - 4]
mov dword [0x458fd8], eax
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + edx]
imul eax, edx
cdq
mov ecx, 5
idiv ecx
xor eax, dword [ebp - 4]
mov dword [0x458fdc], eax
mov edx, dword [0x458fd8]
and edx, 0xff
mov dword [0x458fd8], edx
mov eax, dword [0x458fdc]
and eax, 0xff
xor eax, 0xaa
mov dword [0x458fdc], eax
mov dword [0x458d20], 1
lea ecx, [ebp - 0x22c]
push ecx
push 0x458db0
call fcn.0042f1db
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret