Function at 0x4131bb
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 0x413205
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413227
push dword [ebp + 8]
push 0
push 0x400
call fcn.004136a8
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00432620
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41325c
push ebx
call fcn.00430d89
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 0x41328a
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4132c3
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x9c7fb0]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4132b9
push 6
call fcn.00430d71
add esp, 4
mov eax, 0x464300
jmp 0x413680
lea eax, [ebp - 8]
push eax
call fcn.00413cb1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4132e3
push ebx
call fcn.00430d89
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 0x4132fa
mov eax, 0x464300
push eax
push 1
mov ebx, 0x174
call fcn.00432500
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x413324
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x464300
push dword [ebp - 8]
call fcn.004010c7
add esp, 8
cmp eax, 0
jne 0x413372
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x9c7fb0]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x413363
push 6
call fcn.00430d71
add esp, 4
mov eax, 0x464300
jmp 0x413680
mov eax, dword [ebp - 8]
test eax, eax
je 0x41338e
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
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 0x41339f
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004076d8
push reloc.WSOCK32.dll_connect
push 0
push 0x7724ff
push reloc.WSOCK32.dll_connect
push 0
push 0x772502
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4133e4
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41340e
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004076d8
push reloc.WSOCK32.dll_connect
push 0
push 0x77251a
push reloc.WSOCK32.dll_connect
push 0
push 0x77251d
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413453
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41347d
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004076d8
push reloc.WSOCK32.dll_connect
push 0
push 0x772535
push reloc.WSOCK32.dll_connect
push 0
push 0x772538
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4134c2
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4134ec
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004076d8
push reloc.WSOCK32.dll_connect
push 0
push 0x772550
push reloc.WSOCK32.dll_connect
push 0
push 0x772553
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413531
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41355b
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004076d8
push reloc.WSOCK32.dll_connect
push 0
push 0x77256b
push reloc.WSOCK32.dll_connect
push 0
push 0x77256e
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4135a0
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4135ca
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004076d8
push reloc.WSOCK32.dll_connect
push 0
push 0x772586
push reloc.WSOCK32.dll_connect
push 0
push 0x772589
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41360f
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x413639
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x9c7fb0]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41365f
push 6
call fcn.00430d71
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41367b
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x413680
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x413691
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4136a1
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4