Function at 0x4685b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00473800
and eax, 3
jne 0x4685d4
xor eax, eax
jmp 0x46894b
cmp dword [ebp + 0x1c], 0
je 0x4685e5
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x234], eax
jmp 0x4685ef
mov dword [ebp - 0x234], 0x4c9760
cmp dword [ebp + 0x18], 0
je 0x468600
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x238], ecx
jmp 0x46860a
mov dword [ebp - 0x238], 0x4c9768
cmp dword [ebp + 0x14], 0
je 0x46861b
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x23c], edx
jmp 0x468625
mov dword [ebp - 0x23c], 0x4c9770
cmp dword [ebp + 0x10], 0
je 0x468636
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x240], eax
jmp 0x468640
mov dword [ebp - 0x240], 0x4c9778
cmp dword [ebp + 0xc], 0
je 0x468651
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x244], ecx
jmp 0x46865b
mov dword [ebp - 0x244], 0x4c9780
cmp dword [ebp + 8], 0
je 0x46866c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x248], edx
jmp 0x468676
mov dword [ebp - 0x248], 0x4c9788
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x248]
push eax
push str.installKoMiP2PMonitor_OEM_src__s__toSys__s__toWin__s__monName__s__monFile__s__tmpDir__s__copyOnly__d__n
push 0
call fcn.00468960
add esp, 0x24
cmp dword [ebp + 8], 0
jne 0x4686c0
xor eax, eax
jmp 0x46894b
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00489ae0
add esp, 8
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4686f9
xor eax, eax
jmp 0x46894b
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], 0
push 0x4c97f8
mov eax, dword [ebp - 0x118]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0xc]
push eax
call fcn.0048e722
add esp, 8
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4687c4
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.00468d40
add esp, 4
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
test eax, eax
jne 0x468760
jmp 0x46870c
cmp dword [ebp - 0x11c], 0
je 0x468797
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00468ad0
add esp, 0x10
test eax, eax
jne 0x468795
xor eax, eax
jmp 0x46894b
jmp 0x4687bf
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00468970
add esp, 0xc
test eax, eax
jne 0x4687bf
xor eax, eax
jmp 0x46894b
jmp 0x46870c
push 0x104
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4687e1
xor eax, eax
jmp 0x46894b
mov dword [ebp - 0x118], 0
push 0x4c97fc
mov eax, dword [ebp - 0x118]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x10]
push eax
call fcn.0048e722
add esp, 8
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x468865
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.00468d40
add esp, 4
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
test eax, eax
jne 0x46883b
jmp 0x4687eb
mov ecx, dword [ebp - 0x118]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.00468970
add esp, 0xc
test eax, eax
jne 0x468863
xor eax, eax
jmp 0x46894b
jmp 0x4687eb
cmp dword [ebp + 0x20], 0
je 0x468884
push 0x4c9800
push 0
call fcn.00468960
add esp, 8
mov eax, 1
jmp 0x46894b
push 0xc
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.004886d0
add esp, 0xc
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], 0x4c9844
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x120]
push eax
push 0x4c9850
push 0
call fcn.00468960
add esp, 0x14
lea ecx, [ebp - 0x128]
push ecx
push 2
push 0
call sub.WINSPOOL.DRV_AddMonitorA
test eax, eax
jne 0x468928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x468914
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c9898
push 0
call fcn.00468960
add esp, 0xc
xor eax, eax
jmp 0x46894b
push 0xb7
push 0x4c98d8
push 0
call fcn.00468960
add esp, 0xc
push 0x4c9920
push 0
call fcn.00468960
add esp, 8
push 0x4c9950
push 0
call fcn.00468960
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret