Function at 0x416f97
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 0x416fe1
push 6
call fcn.0043896b
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417003
push dword [ebp + 8]
push 0
push 0x400
call fcn.00417484
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.0043a3c0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x417038
push ebx
call fcn.00438983
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 0x417066
push 6
call fcn.0043896b
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41709f
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x417095
push 6
call fcn.0043896b
add esp, 4
mov eax, 0x46c304
jmp 0x41745c
lea eax, [ebp - 8]
push eax
call fcn.00417a8d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4170bf
push ebx
call fcn.00438983
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 0x4170d6
mov eax, 0x46c304
push eax
push 1
mov ebx, 0x174
call fcn.0043a2a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x417100
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x46c304
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x41714e
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41713f
push 6
call fcn.0043896b
add esp, 4
mov eax, 0x46c304
jmp 0x41745c
mov eax, dword [ebp - 8]
test eax, eax
je 0x41716a
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00438977
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 0x41717b
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x7798c7
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 0x4171c0
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4171ea
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x7798e2
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 0x41722f
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417259
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x7798fd
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 0x41729e
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4172c8
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x779918
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 0x41730d
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417337
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x779933
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 0x41737c
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4173a6
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x77994e
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 0x4173eb
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417415
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xa319ac]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41743b
push 6
call fcn.0043896b
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x417457
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00438977
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41745c
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41746d
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41747d
push ebx
call fcn.00438983
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4