Function at 0x402d28
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 0x402d8e
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 0x403157
push 0x208
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 8], eax
mov eax, 0x41029c
xor ecx, ecx
test eax, eax
je 0x402dd7
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 0x402dea
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x402e01
dec eax
test ecx, ecx
je 0x402e01
call fcn.0040205b
add esp, 0xc
test eax, eax
jne 0x402edb
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, 0x43040d
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402848
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402e51
push ebx
call fcn.00406852
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402e65
push ebx
call fcn.00406852
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x4303fb]
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.00402b2c
mov dword [ebp - 0x4c], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402ea9
mov eax, 0x41029c
push eax
push 1
mov ebx, 0x194
call fcn.00407370
add esp, 0x10
push eax
push dword [ebp - 0x4c]
fld qword [ebp - 0x48]
call fcn.00401030
push eax
xor eax, eax
call dword [0x430aa3]
add esp, 0xc
nop
nop
jmp 0x402f22
push dword [ebp + 0x10]
call fcn.00402b2c
mov dword [ebp - 0x2c], eax
push 0x80000005
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x402efb
mov eax, 0x41029c
push eax
push 1
mov ebx, 0x194
call fcn.00407370
add esp, 0x10
push eax
push dword [ebp - 0x2c]
push dword [ebp - 8]
xor eax, eax
call dword [0x430aa3]
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 [0x430aa7]
nop
nop
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x403130
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.00403180
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.00403180
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 [0x43041b]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00401030
push eax
call fcn.00402d0c
mov word [ebp - 0x20], ax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x430423]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00401030
push eax
call fcn.00402d0c
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 [0x4303fb]
fstp qword [ebp - 0x38]
push 0x80000601
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 1
mov ebx, 0x9dc
call fcn.00406bc0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x40], eax
jle 0x403116
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x4303fb]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00401030
push eax
push 0x38
push dword [ebp - 0x1c]
call fcn.004031a0
push 0x10
push dword [ebp - 0x18]
call fcn.00403180
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.00403180
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 0x403168
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403179
push ebx
call fcn.00406852
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10