Function at 0x40ea60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419722
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040ffe7
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
jmp 0x40eaaa
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x40]
call fcn.0040d1f0
cmp dword [ebp - 0x2c], eax
jae 0x40eaf9
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x40]
call fcn.0040d170
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40eace
jmp 0x40eaa1
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0x44]
test ecx, ecx
je 0x40eae6
mov ecx, dword [ebp - 0x18]
call fcn.0040e290
cmp eax, dword [ebp - 0x24]
jg 0x40eaf7
mov ecx, dword [ebp - 0x18]
call fcn.0040e310
movsx edx, al
test edx, edx
jne 0x40eaf7
jmp 0x40eaf9
jmp 0x40eaa1
cmp dword [ebp - 0x18], 0
je 0x40eb26
mov ecx, dword [ebp - 0x18]
call fcn.0040e290
cmp eax, dword [ebp - 0x24]
jle 0x40eb17
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0x44]
test ecx, ecx
jne 0x40eb26
mov ecx, dword [ebp - 0x18]
call fcn.0040e310
movsx edx, al
test edx, edx
je 0x40eb2d
xor eax, eax
jmp 0x40ecf0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0040e2f0
push 0x20
call fcn.0040fead
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x40eb5e
mov ecx, dword [ebp - 0x34]
call fcn.0040be20
mov dword [ebp - 0x44], eax
jmp 0x40eb65
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
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 ecx, dword [ebp - 0x18]
call fcn.0040e2d0
mov dword [ebp - 0x28], eax
push 0
push 0x80
push 3
push 0
push 1
push connect
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40ebf4
mov ecx, dword [ebp - 0x14]
call fcn.0040bf40
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x40ebe6
push 1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], eax
jmp 0x40ebed
mov dword [ebp - 0x48], 0
xor eax, eax
jmp 0x40ecf0
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x28
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x10], 0
je 0x40ec7a
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
push eax
call fcn.00403ab0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0xc], 0
jne 0x40ec41
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0
jmp 0x40ec7a
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 0x41c0ac
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 0x40ece3
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 0x40ecaa
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x18], 0
jmp 0x40ece3
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 0x41c0b8
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]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret