Function at 0x40b9c3
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 0x40ba17
push 0x19
push 0x4010d6a
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ba39
push dword [ebp + 8]
push 0
push 0x400
call fcn.0040beba
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00428b80
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ba6e
push ebx
call fcn.00427715
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 0x40baa6
push 0x118
push 0x4010d6a
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40babd
mov eax, 0x45c309
jmp 0x40be92
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x462bd6]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40bae9
push 0x168
push 0x4010d6a
push 6
call fcn.00427721
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.0040c531
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bb09
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40bb20
mov eax, 0x45c309
push eax
push 1
mov ebx, 0x174
call fcn.00428ec0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bb4a
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x45c309
push dword [ebp - 8]
call fcn.004010e7
add esp, 8
cmp eax, 0
jne 0x40bb76
mov eax, 0x45c612
jmp 0x40be92
mov eax, dword [ebp - 8]
test eax, eax
je 0x40bb92
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042770f
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 0x40bba3
push ebx
call fcn.00427715
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 0x45c614
push 0x80000004
push 0
push str.DeviceHarddiskVolume6
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40bbf0
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bc1a
push ebx
call fcn.00427715
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 0x45c62f
push 0x80000004
push 0
push str.DeviceHarddiskVolume5
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40bc67
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bc91
push ebx
call fcn.00427715
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 0x45c64a
push 0x80000004
push 0
push str.DeviceHarddiskVolume4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40bcde
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bd08
push ebx
call fcn.00427715
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 0x45c665
push 0x80000004
push 0
push str.DeviceHarddiskVolume3
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40bd55
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bd7f
push ebx
call fcn.00427715
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 0x45c680
push 0x80000004
push 0
push str.DeviceHarddiskVolume2
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40bdcc
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bdf6
push ebx
call fcn.00427715
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 0x45c69b
push 0x80000004
push 0
push str.DeviceHarddiskVolume1
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40be43
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40be6d
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40be8d
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042770f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40be92
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bea3
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40beb3
push ebx
call fcn.00427715
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4