Function at 0x401e88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 8], 0
jg 0x401eee
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
mov dword [ebp + 8], eax
push dword [ebp + 8]
push 0
push 0x1f0fff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4022b7
push 0x208
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 8], eax
mov eax, 0x41d330
xor ecx, ecx
test eax, eax
je 0x401f37
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x401f4a
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x401f61
dec eax
test ecx, ecx
je 0x401f61
call fcn.00401ddc
add esp, 0xc
test eax, eax
jne 0x40203b
push 0x104
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
nop
nop
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.explorer.exe
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004018fc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401fb1
push ebx
call fcn.00406d7f
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401fc5
push ebx
call fcn.00406d7f
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x41d387]
fstp qword [ebp - 0x38]
fild dword [ebp - 8]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x48]
lea eax, [ebp - 0x10]
push eax
call fcn.00401be0
mov dword [ebp - 0x4c], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402009
mov eax, 0x41d330
push eax
push 1
mov ebx, 0x194
call fcn.004078c0
add esp, 0x10
push eax
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.0040109d
push eax
xor eax, eax
call dword [0x43da7b]
add esp, 0xc
nop
nop
jmp 0x402082
push dword [ebp + 0x10]
call fcn.00401be0
mov dword [ebp - 0x2c], eax
push 0x80000005
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x40205b
mov eax, 0x41d330
push eax
push 1
mov ebx, 0x194
call fcn.004078c0
add esp, 0x10
push eax
push dword [ebp - 0x2c]
push dword [ebp - 8]
xor eax, eax
call dword [0x43da7b]
add esp, 0xc
nop
nop
push 0x18
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0x14], eax
mov eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 0x14]
push 0
push dword [ebp - 4]
xor eax, eax
call dword [0x43da7f]
nop
nop
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x402290
push 0x1d8
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0x18], eax
push 4
push dword [ebp - 0x14]
call fcn.004022e0
mov dword [ebp - 0x2c], eax
push 0
push 0x1d8
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop
nop
push 0x48
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0x1c], eax
push 0x10
push dword [ebp - 0x18]
call fcn.004022e0
mov dword [ebp - 0x2c], eax
push 0
push 0x48
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
nop
nop
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x41d3a7]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040109d
push eax
call fcn.00401dc0
mov word [ebp - 0x20], ax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x41d3af]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040109d
push eax
call fcn.00401dc0
mov word [ebp - 0x24], ax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
nop
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
cwde
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fdiv qword [0x41d387]
fstp qword [ebp - 0x38]
push 0x80000601
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 1
mov ebx, 0x9dc
call fcn.00407780
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x40], eax
jle 0x402276
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x41d387]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040109d
push eax
push 0x38
push dword [ebp - 0x1c]
call fcn.00402300
push 0x10
push dword [ebp - 0x18]
call fcn.004022e0
mov dword [ebp - 0x2c], eax
push 0
push 0x48
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
push 0x3c
push dword [ebp - 0x1c]
call fcn.004022e0
mov dword [ebp - 0x2c], eax
push 0
mov eax, dword [ebp - 0x24]
cwde
push eax
push dword [ebp - 8]
push dword [ebp - 0x2c]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x28], 0
mov eax, 0
setne al
jmp 0x4022c8
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4022d9
push ebx
call fcn.00406d7f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10