Function at 0x40ef10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41975f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [0x420070]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x70], ecx
cmp dword [ebp + 8], 0
jne 0x40ef45
xor eax, eax
jmp 0x40f21e
push 0x20
call fcn.0040fead
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x5c], 0
je 0x40ef6c
mov ecx, dword [ebp - 0x5c]
call fcn.0040be20
mov dword [ebp - 0x74], eax
jmp 0x40ef73
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040c190
mov ecx, dword [ebp - 0x14]
call fcn.004072e0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40f000
mov ecx, dword [ebp - 0x14]
call fcn.0040bf40
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0
je 0x40efef
push 1
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x60]
call dword [edx]
mov dword [ebp - 0x78], eax
jmp 0x40eff6
mov dword [ebp - 0x78], 0
mov eax, 1
jmp 0x40f21e
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x28
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0
je 0x40f086
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00403ab0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xc], 0
jne 0x40f04d
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0
jmp 0x40f086
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0x41c0d0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00403d50
add esp, 0xc
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x18], 0
je 0x40f0ef
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00403ab0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0
jne 0x40f0b6
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x18], 0
jmp 0x40f0ef
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push str.ScDgfrKsdN
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00403d50
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x20
call fcn.0040fead
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x6c], 0
je 0x40f120
mov ecx, dword [ebp - 0x6c]
call fcn.0040e190
mov dword [ebp - 0x7c], eax
jmp 0x40f127
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x40f14a
mov eax, 2
jmp 0x40f21e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040e330
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040e2b0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0x44]
test ecx, ecx
je 0x40f204
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x30]
call fcn.004096b0
mov dword [ebp - 4], 2
push 0x1e
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004100c0
add esp, 0xc
push 0x1e
lea ecx, [ebp - 0x54]
push ecx
push str.START
lea ecx, [ebp - 0x30]
call fcn.00409710
test eax, eax
jne 0x40f1db
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.0040e480
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e270
jmp 0x40f1f3
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040ffe7
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040e270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004096e0
jmp 0x40f210
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e270
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x70]
call fcn.0040d030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00410051
mov esp, ebp
pop ebp
ret 4