Function at 0x401480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx], 0
push ebx
push esi
mov esi, edx
mov dword [0x44a694], 0
mov dword [0x44a69c], 0
mov dword [0x44a6a4], 0
mov dword [0x44a6b4], esi
mov dword [0x44a6b0], 0
jne 0x4014e0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x4014fd
lea edx, [ebp - 0x110]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4014f0
lea eax, [ebp - 0x110]
push 0x43fc70
push eax
call fcn.00419df7
add esp, 8
mov dword [0x44a60c], eax
test eax, eax
je 0x401747
test esi, esi
jle 0x401533
push 0
push esi
push eax
call fcn.0041a1be
mov eax, dword [0x44a60c]
add esp, 0xc
push eax
push 1
push 0x10
push 0x44a610
call fcn.0041c823
mov eax, dword [0x44a614]
push dword [0x44a60c]
add eax, esi
mov dword [0x44a694], eax
mov eax, dword [0x44a618]
mov dword [0x44a6ac], eax
call fcn.00419e84
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x584d5044
push eax
push 0x44a610
mov byte [ebp - 8], 0
call fcn.0041a770
add esp, 0x20
test eax, eax
jne 0x401747
mov ecx, dword [0x44a6ac]
mov ebx, dword [0x44a61c]
shl ecx, 5
add ebx, 0x10
add ebx, ecx
push ebx
mov dword [ebp - 0x118], ebx
call fcn.0041c954
add esp, 4
mov dword [0x44a6b0], eax
test eax, eax
je 0x401747
lea eax, [ebp - 0x110]
push 0x43fc70
push eax
call fcn.00419df7
add esp, 8
mov dword [0x44a60c], eax
test esi, esi
jle 0x4015e7
push 0
push esi
push eax
call fcn.0041a1be
mov eax, dword [0x44a60c]
add esp, 0xc
push edi
push eax
push 1
push ebx
push dword [0x44a6b0]
call fcn.0041c823
push dword [0x44a60c]
call fcn.00419e84
mov eax, dword [ebp + 0xc]
add esp, 0x14
sar eax, 0x18
xor ebx, ebx
movzx ecx, al
xor edi, edi
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 2
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x114], ecx
je 0x4016bb
lea eax, [ebp - 0x110]
push 0x43fc70
push eax
call fcn.00419df7
add esp, 8
mov dword [0x44a60c], eax
test esi, esi
jle 0x40165f
push edi
push esi
push eax
call fcn.0041a1be
mov eax, dword [0x44a60c]
add esp, 0xc
push eax
call fcn.0041a667
add esp, 4
test eax, eax
js 0x401689
mov esi, dword [ebp - 0x114]
push dword [0x44a60c]
add eax, esi
inc edi
add ebx, eax
call fcn.0041a667
add esp, 4
test eax, eax
jns 0x401672
push dword [0x44a60c]
call fcn.00419e84
movzx eax, bx
add esp, 4
cmp dword [ebp + 8], eax
je 0x4016b5
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415dc0
mov esp, ebp
pop ebp
ret
sub edi, dword [ebp - 0x118]
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
jne 0x4016d2
mov dword [0x44a4fc], 0xaa
lea eax, [ebx + 0x56]
jmp 0x40170b
movzx eax, byte [ebp + 0xe]
movzx ecx, bl
imul ecx, eax
mov eax, 0xaaaaaaab
mul ecx
movzx ecx, bh
shr edx, 1
xor edx, edi
movzx eax, dl
mov dword [0x44a4fc], eax
movzx eax, byte [ebp + 0xf]
imul ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 2
xor edx, edi
xor edx, 0xffffffaa
movzx eax, dl
mov dword [0x44a608], eax
xor ecx, ecx
mov dword [0x44a69c], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x110]
lea ecx, [ecx + 1]
mov byte [ecx + 0x44a4ff], al
test al, al
jne 0x401720
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415dc0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
xor ecx, ebp
pop ebx
call fcn.00415dc0
mov esp, ebp
pop ebp
ret