Function at 0x40f1b4
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 0x40f208
push 0x19
push 0x4010d6a
push 6
call fcn.00426cc5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f22a
push dword [ebp + 8]
push 0
push 0x400
call fcn.0040f6ab
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00427ec0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f25f
push ebx
call fcn.00426cbf
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 0x40f297
push 0x118
push 0x4010d6a
push 6
call fcn.00426cc5
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40f2ae
mov eax, 0x45131a
jmp 0x40f683
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x661ed6]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40f2da
push 0x168
push 0x4010d6a
push 6
call fcn.00426cc5
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.0040fd22
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f2fa
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40f311
mov eax, 0x45131a
push eax
push 1
mov ebx, 0x174
call fcn.00428360
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f33b
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x45131a
push dword [ebp - 8]
call fcn.00401000
add esp, 8
cmp eax, 0
jne 0x40f367
mov eax, 0x451762
jmp 0x40f683
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f383
push eax
mov ebx, eax
call fcn.0040109d
inc eax
push eax
call fcn.00426cb9
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 0x40f394
push ebx
call fcn.00426cbf
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 0x451764
push 0x80000004
push 0
push str.DeviceHarddiskVolume6
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f3e1
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004284e0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f40b
push ebx
call fcn.00426cbf
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 0x45177f
push 0x80000004
push 0
push str.DeviceHarddiskVolume5
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f458
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004284e0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f482
push ebx
call fcn.00426cbf
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 0x45179a
push 0x80000004
push 0
push str.DeviceHarddiskVolume4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f4cf
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004284e0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f4f9
push ebx
call fcn.00426cbf
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 0x4517b5
push 0x80000004
push 0
push str.DeviceHarddiskVolume3
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f546
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004284e0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f570
push ebx
call fcn.00426cbf
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 0x4517d0
push 0x80000004
push 0
push str.DeviceHarddiskVolume2
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f5bd
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004284e0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f5e7
push ebx
call fcn.00426cbf
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 0x4517eb
push 0x80000004
push 0
push str.DeviceHarddiskVolume1
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f634
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004284e0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f65e
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40f67e
push eax
mov ebx, eax
call fcn.0040109d
inc eax
push eax
call fcn.00426cb9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f683
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f694
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f6a4
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4