Function at 0x40d53c
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 0x40d586
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d5a8
push dword [ebp + 8]
push 0
push 0x400
call fcn.0040da29
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00449d00
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d5dd
push ebx
call fcn.00448209
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 0x40d60b
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40d644
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xcd2296]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40d63a
push 6
call fcn.004481f1
add esp, 4
mov eax, 0x48c313
jmp 0x40da01
lea eax, [ebp - 8]
push eax
call fcn.0040e032
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d664
push ebx
call fcn.00448209
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 0x40d67b
mov eax, 0x48c313
push eax
push 1
mov ebx, 0x174
call fcn.00449be0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d6a5
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x48c313
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x40d6f3
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xcd2296]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40d6e4
push 6
call fcn.004481f1
add esp, 4
mov eax, 0x48c313
jmp 0x40da01
mov eax, dword [ebp - 8]
test eax, eax
je 0x40d70f
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004481fd
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 0x40d720
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00408ccd
push reloc.WSOCK32.dll_connect
push 0
push 0x731be5
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 0x40d765
mov eax, 0x48c313
push eax
push 6
mov ebx, 0x180
call fcn.0044a190
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d78f
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00408ccd
push reloc.WSOCK32.dll_connect
push 0
push 0x731c00
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 0x40d7d4
mov eax, 0x48c313
push eax
push 6
mov ebx, 0x180
call fcn.0044a190
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d7fe
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00408ccd
push reloc.WSOCK32.dll_connect
push 0
push 0x731c1b
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 0x40d843
mov eax, 0x48c313
push eax
push 6
mov ebx, 0x180
call fcn.0044a190
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d86d
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00408ccd
push reloc.WSOCK32.dll_connect
push 0
push 0x731c36
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 0x40d8b2
mov eax, 0x48c313
push eax
push 6
mov ebx, 0x180
call fcn.0044a190
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d8dc
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00408ccd
push reloc.WSOCK32.dll_connect
push 0
push 0x731c51
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 0x40d921
mov eax, 0x48c313
push eax
push 6
mov ebx, 0x180
call fcn.0044a190
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d94b
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00408ccd
push reloc.WSOCK32.dll_connect
push 0
push 0x731c6c
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 0x40d990
mov eax, 0x48c313
push eax
push 6
mov ebx, 0x180
call fcn.0044a190
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d9ba
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0xcd2296]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40d9e0
push 6
call fcn.004481f1
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40d9fc
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004481fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40da01
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40da12
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40da22
push ebx
call fcn.00448209
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4