Function at 0x4127f4
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 0x41283e
push 6
call fcn.004327d6
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412860
push dword [ebp + 8]
push 0
push 0x400
call fcn.00412ce1
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00434230
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412895
push ebx
call fcn.004327ee
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 0x4128c3
push 6
call fcn.004327d6
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4128fc
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x9cd74b]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4128f2
push 6
call fcn.004327d6
add esp, 4
mov eax, 0x466304
jmp 0x412cb9
lea eax, [ebp - 8]
push eax
call fcn.004132ea
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41291c
push ebx
call fcn.004327ee
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 0x412933
mov eax, 0x466304
push eax
push 1
mov ebx, 0x174
call fcn.00434110
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41295d
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x466304
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x4129ab
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x9cd74b]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41299c
push 6
call fcn.004327d6
add esp, 4
mov eax, 0x466304
jmp 0x412cb9
mov eax, dword [ebp - 8]
test eax, eax
je 0x4129c7
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004327e2
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 0x4129d8
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407eb1
push reloc.WSOCK32.dll_connect
push 0
push 0x772c8a
push reloc.WSOCK32.dll_connect
push 0
push 0x772c8d
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412a1d
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412a47
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407eb1
push reloc.WSOCK32.dll_connect
push 0
push 0x772ca5
push reloc.WSOCK32.dll_connect
push 0
push 0x772ca8
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412a8c
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412ab6
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407eb1
push reloc.WSOCK32.dll_connect
push 0
push 0x772cc0
push reloc.WSOCK32.dll_connect
push 0
push 0x772cc3
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412afb
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412b25
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407eb1
push reloc.WSOCK32.dll_connect
push 0
push 0x772cdb
push reloc.WSOCK32.dll_connect
push 0
push 0x772cde
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412b6a
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412b94
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407eb1
push reloc.WSOCK32.dll_connect
push 0
push 0x772cf6
push reloc.WSOCK32.dll_connect
push 0
push 0x772cf9
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412bd9
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412c03
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407eb1
push reloc.WSOCK32.dll_connect
push 0
push 0x772d11
push reloc.WSOCK32.dll_connect
push 0
push 0x772d14
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412c48
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412c72
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x9cd74b]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412c98
push 6
call fcn.004327d6
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412cb4
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004327e2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x412cb9
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412cca
push ebx
call fcn.004327ee
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412cda
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4