Function at 0x40f2dd
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 0x40f331
push 0x19
push 0x4010d6a
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f353
push dword [ebp + 8]
push 0
push 0x400
call fcn.0040f7d4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.0042daf0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f388
push ebx
call fcn.0042c749
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 0x40f3c0
push 0x118
push 0x4010d6a
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40f3d7
mov eax, 0x45035b
jmp 0x40f7ac
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x474c6a]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40f403
push 0x168
push 0x4010d6a
push 6
call fcn.0042c74f
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.0040fe4b
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f423
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40f43a
mov eax, 0x45035b
push eax
push 1
mov ebx, 0x174
call fcn.0042e0e0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f464
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x45035b
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x40f490
mov eax, 0x450719
jmp 0x40f7ac
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f4ac
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042c743
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 0x40f4bd
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push 0x45071b
push 0x80000004
push 0
push str.DeviceHarddiskVolume6
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f50a
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f534
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push 0x450736
push 0x80000004
push 0
push str.DeviceHarddiskVolume5
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f581
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f5ab
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push 0x450751
push 0x80000004
push 0
push str.DeviceHarddiskVolume4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f5f8
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f622
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push 0x45076c
push 0x80000004
push 0
push str.DeviceHarddiskVolume3
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f66f
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f699
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push 0x450787
push 0x80000004
push 0
push str.DeviceHarddiskVolume2
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f6e6
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f710
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push closesocket
push 0
push 0
push 0x80000301
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push 0x4507a2
push 0x80000004
push 0
push str.DeviceHarddiskVolume1
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f75d
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f787
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40f7a7
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f7ac
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f7bd
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f7cd
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4