Function at 0x40220c
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00447b00
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40226d
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0xfa
push 1
mov ebx, 0x184
call fcn.00447b00
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4022a6
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x400
xor eax, eax
call dword [0x4baf10]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4022e0
push 0x85
push 0x402819d
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push 0x104
push dword [ebp - 4]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x402317
push 0xb2
push 0x402819d
push 6
call fcn.00446bbb
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x10]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x1a
jg 0x4024d7
fild dword [ebp - 0x10]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x479907]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401b87
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x140
call fcn.004479b0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x47990f
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40238b
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40239f
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0xfa
push dword [ebp - 8]
push dword [ebp - 0x14]
xor eax, eax
call dword [0x4baf14]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4023d7
push 0x169
push 0x402819d
push 6
call fcn.00446bbb
add esp, 0xc
push connect
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4023fc
mov eax, 0x479858
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402410
mov eax, 0x479858
push eax
push 4
mov ebx, 0x148
call fcn.004479d0
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4024d0
push connect
push 0
push 1
mov ebx, 6
call fcn.00402204
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x402459
mov eax, 0x479858
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40246d
mov eax, 0x479858
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402481
mov eax, 0x479858
push eax
push 6
mov ebx, 0x180
call fcn.00447b40
add esp, 0x4c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4024ab
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4024cb
push eax
mov ebx, eax
call fcn.00401bae
inc eax
push eax
call fcn.00446baf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4024fb
pop ebx
pop ecx
jmp 0x40231e
add esp, 8
mov eax, dword [ebp - 4]
test eax, eax
je 0x4024f6
push eax
mov ebx, eax
call fcn.00401bae
inc eax
push eax
call fcn.00446baf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4024fb
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40250c
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40251c
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40252c
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4