Function at 0x4026f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144d6
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x41b0b0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x124], 0
push 0x104
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.00405240
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x415314
lea edx, [ebp - 0x124]
push edx
call fcn.0040675c
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402770
xor eax, eax
jmp 0x4029f0
mov dword [ebp - 0x14], 0xfffffff0
mov eax, 1
test eax, eax
je 0x4029f0
push 2
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00406613
add esp, 0xc
test eax, eax
je 0x4027ad
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00406428
add esp, 4
mov dword [ebp - 0x344], eax
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0x10
lea eax, [ebp - 0x134]
push eax
call fcn.0040626e
add esp, 0x10
cmp eax, 1
je 0x4027ee
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov edx, dword [ebp - 0x130]
xor edx, dword [ebp - 0x128]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x12c]
xor eax, dword [ebp - 0x134]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x130]
and ecx, 0xffffff00
cmp ecx, 0xbf451600
je 0x402839
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x344]
jbe 0x40285a
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov edx, dword [ebp - 0x344]
sub edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 0x10
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x130]
and ecx, 0xff
movzx edx, byte [ebp + 8]
cmp ecx, edx
je 0x402894
jmp 0x402777
push 0
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00406613
add esp, 0xc
test eax, eax
je 0x4028c0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.0040532f
add esp, 4
mov dword [ebp - 0x348], eax
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x340], edx
cmp dword [ebp - 0x340], 0
jne 0x4028fc
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [ebp - 0x340]
push ecx
call fcn.0040626e
add esp, 0x10
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx]
je 0x40294c
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
push ecx
call fcn.004052ba
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040650d
add esp, 4
xor eax, eax
jmp 0x4029f0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040650d
add esp, 4
lea ecx, [ebp - 0x324]
call fcn.00403605
mov dword [ebp - 4], 0
push 0x80
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x324]
call fcn.004046d9
lea edx, [ebp - 0x324]
push edx
lea ecx, [ebp - 0x33c]
call fcn.00404870
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x340]
push eax
lea ecx, [ebp - 0x33c]
call fcn.004047af
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x350], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x33c]
call fcn.00404751
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call fcn.0040361d
mov eax, dword [ebp - 0x350]
jmp 0x4029f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040522b
mov esp, ebp
pop ebp
ret