Function at 0x412b20
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
push 0
push 0x400
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412b6a
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412b8c
push dword [ebp + 8]
push 0
push 0x400
call fcn.0041300d
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00435c70
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412bc1
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 0x200
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412bef
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x412c28
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xa2cd12]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412c1e
push 6
call fcn.00434227
add esp, 4
mov eax, 0x468304
jmp 0x412fe5
lea eax, [ebp - 8]
push eax
call fcn.00413616
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412c48
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412c5f
mov eax, 0x468304
push eax
push 1
mov ebx, 0x174
call fcn.00435b50
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412c89
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x468304
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x412cd7
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xa2cd12]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412cc8
push 6
call fcn.00434227
add esp, 4
mov eax, 0x468304
jmp 0x412fe5
mov eax, dword [ebp - 8]
test eax, eax
je 0x412cf3
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412d04
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e65
push reloc.WSOCK32.dll_connect
push 0
push 0x774c7e
push reloc.WSOCK32.dll_connect
push 0
push 0x774c81
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412d49
mov eax, 0x468304
push eax
push 6
mov ebx, 0x180
call fcn.00436c00
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412d73
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e65
push reloc.WSOCK32.dll_connect
push 0
push 0x774c99
push reloc.WSOCK32.dll_connect
push 0
push 0x774c9c
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412db8
mov eax, 0x468304
push eax
push 6
mov ebx, 0x180
call fcn.00436c00
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412de2
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e65
push reloc.WSOCK32.dll_connect
push 0
push 0x774cb4
push reloc.WSOCK32.dll_connect
push 0
push 0x774cb7
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412e27
mov eax, 0x468304
push eax
push 6
mov ebx, 0x180
call fcn.00436c00
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412e51
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e65
push reloc.WSOCK32.dll_connect
push 0
push 0x774ccf
push reloc.WSOCK32.dll_connect
push 0
push 0x774cd2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412e96
mov eax, 0x468304
push eax
push 6
mov ebx, 0x180
call fcn.00436c00
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412ec0
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e65
push reloc.WSOCK32.dll_connect
push 0
push 0x774cea
push reloc.WSOCK32.dll_connect
push 0
push 0x774ced
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412f05
mov eax, 0x468304
push eax
push 6
mov ebx, 0x180
call fcn.00436c00
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412f2f
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e65
push reloc.WSOCK32.dll_connect
push 0
push 0x774d05
push reloc.WSOCK32.dll_connect
push 0
push 0x774d08
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412f74
mov eax, 0x468304
push eax
push 6
mov ebx, 0x180
call fcn.00436c00
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412f9e
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xa2cd12]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412fc4
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412fe0
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x412fe5
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412ff6
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x413006
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4