Function at 0x410dcf
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 0x410e19
push 6
call fcn.00439f3a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410e3b
push dword [ebp + 8]
push 0
push 0x400
call fcn.004112bc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.0043b980
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x410e70
push ebx
call fcn.00439f52
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 0x410e9e
push 6
call fcn.00439f3a
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410ed7
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xcae772]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x410ecd
push 6
call fcn.00439f3a
add esp, 4
mov eax, 0x46e300
jmp 0x411294
lea eax, [ebp - 8]
push eax
call fcn.004118c5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x410ef7
push ebx
call fcn.00439f52
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 0x410f0e
mov eax, 0x46e300
push eax
push 1
mov ebx, 0x174
call fcn.0043b860
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x410f38
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x46e300
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x410f86
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xcae772]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x410f77
push 6
call fcn.00439f3a
add esp, 4
mov eax, 0x46e300
jmp 0x411294
mov eax, dword [ebp - 8]
test eax, eax
je 0x410fa2
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00439f46
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 0x410fb3
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e02
push reloc.WSOCK32.dll_connect
push 0
push 0x74f98f
push reloc.WSOCK32.dll_connect
push 0
push str.DeviceHarddiskVolume6
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x410ff8
mov eax, 0x46e300
push eax
push 6
mov ebx, 0x180
call fcn.0043beb0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x411022
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e02
push reloc.WSOCK32.dll_connect
push 0
push 0x74f9aa
push reloc.WSOCK32.dll_connect
push 0
push str.DeviceHarddiskVolume5
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x411067
mov eax, 0x46e300
push eax
push 6
mov ebx, 0x180
call fcn.0043beb0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x411091
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e02
push reloc.WSOCK32.dll_connect
push 0
push 0x74f9c5
push reloc.WSOCK32.dll_connect
push 0
push str.DeviceHarddiskVolume4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4110d6
mov eax, 0x46e300
push eax
push 6
mov ebx, 0x180
call fcn.0043beb0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x411100
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e02
push reloc.WSOCK32.dll_connect
push 0
push 0x74f9e0
push reloc.WSOCK32.dll_connect
push 0
push str.DeviceHarddiskVolume3
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x411145
mov eax, 0x46e300
push eax
push 6
mov ebx, 0x180
call fcn.0043beb0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41116f
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e02
push reloc.WSOCK32.dll_connect
push 0
push 0x74f9fb
push reloc.WSOCK32.dll_connect
push 0
push str.DeviceHarddiskVolume2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4111b4
mov eax, 0x46e300
push eax
push 6
mov ebx, 0x180
call fcn.0043beb0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4111de
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00407e02
push reloc.WSOCK32.dll_connect
push 0
push 0x74fa16
push reloc.WSOCK32.dll_connect
push 0
push str.DeviceHarddiskVolume1
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x411223
mov eax, 0x46e300
push eax
push 6
mov ebx, 0x180
call fcn.0043beb0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41124d
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xcae772]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x411273
push 6
call fcn.00439f3a
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41128f
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00439f46
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x411294
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4112a5
push ebx
call fcn.00439f52
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4112b5
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4