Function at 0x689ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x59
push 0
push 0
dec ecx
jne 0x689ce8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x298]
mov edx, dword [0x41bdec]
call fcn.0040ae34
xor eax, eax
push ebp
push 0x68a185
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6dc3a8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x6dc3a0]
add eax, eax
add eax, 0x2d3665
mov dword [ebp - 0x20], eax
mov edx, 0x68a1a0
mov eax, dword [ebp - 0x20]
call fcn.00689be8
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x689d79
jmp 0x68a141
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 8]
call fcn.0040e574
push eax
call sub.shell32.dll_SHGetMalloc
lea eax, [ebp - 0xc]
push eax
push 0
push 0x175266
push 0
push 0x175266
call fcn.0067d81c
push eax
push 0xffffffffffffffff
push 0xffe72bb7
push 0
push 0x18d449
call fcn.0067d81c
push eax
push 0x1a
push 0
push 0x1bb7be
push 0
push 0x1bb7be
call fcn.0067d81c
push eax
call sub.shell32.dll_SHGetFolderLocation
mov eax, 0x104
call fcn.00406f00
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040a4dc
mov eax, dword [ebp - 0x10]
call fcn.00406f1c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
push 0xffffffffffffffff
push 0xffeb8ec9
push 0
push 0x147137
call fcn.0067d81c
push edx
push eax
mov eax, dword [ebp - 0x14]
call fcn.00409dac
cdq
cmp edx, dword [esp + 4]
jne 0x689e3d
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x689ead
jmp 0x689e41
pop edx
pop eax
jle 0x689ead
mov eax, dword [ebp - 0x14]
call fcn.00409dac
mov edx, dword [ebp - 0x14]
mov dx, word [edx + eax*2 - 2]
lea eax, [ebp - 0x29c]
call fcn.0040a49c
mov eax, dword [ebp - 0x29c]
push eax
push 0
push 0x16f8b0
lea edx, [ebp - 0x2a0]
mov eax, 0x68a1d8
call fcn.0067d9b4
mov edx, dword [ebp - 0x2a0]
pop eax
call fcn.0040a818
je 0x689ead
push 0
push 0x156594
lea edx, [ebp - 0x2a4]
mov eax, 0x68a1ec
call fcn.0067d9b4
mov edx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x14]
call fcn.0040a688
push 0
push 0x14a182
lea edx, [ebp - 0x2a8]
mov eax, 0x68a200
call fcn.0067d9b4
mov edx, dword [ebp - 0x2a8]
lea eax, [ebp - 0x14]
call fcn.0040a688
push 0
push 0x1808c9
lea edx, [ebp - 0x2ac]
mov eax, 0x68a23c
call fcn.0067d9b4
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0040a6e0
xor eax, eax
push ebp
push 0x68a128
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.004246ec
test al, al
je 0x68a11e
push 0
push 0xf797b
lea edx, [ebp - 0x2b4]
mov eax, 0x68a264
call fcn.0067d9b4
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2b0]
mov edx, dword [ebp - 0x18]
call fcn.0040a6e0
mov eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x298]
mov edx, 0x10
call fcn.00424960
cdq
push edx
push eax
push 0xffffffffffffffff
push 0xffea91ef
push 0
push 0x156e11
call fcn.0067d81c
cmp edx, dword [esp + 4]
jne 0x689f7a
cmp eax, dword [esp]
pop edx
pop eax
jne 0x68a113
push dword [ebp - 0x18]
push 0
push 0x1c5ccb
lea edx, [ebp - 0x2b8]
mov eax, 0x68a288
call fcn.0067d9b4
push dword [ebp - 0x2b8]
push dword [ebp - 0x284]
push 0
push 0x16512e
lea edx, [ebp - 0x2bc]
mov eax, 0x68a2a8
call fcn.0067d9b4
push dword [ebp - 0x2bc]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040a768
push 0
push 0x1a6b25
lea edx, [ebp - 0x2c0]
mov eax, 0x68a2c4
call fcn.0067d9b4
mov eax, dword [ebp - 0x2c0]
mov ecx, 1
mov edx, dword [ebp - 0x284]
call fcn.0040aa60
cdq
push edx
push eax
push 0xffffffffffffffff
push 0xffeacabc
push 0
push 0x153545
call fcn.0067d81c
cmp edx, dword [esp + 4]
jne 0x68a01e
cmp eax, dword [esp]
pop edx
pop eax
je 0x68a0e1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x68a0e1
push dword [ebp - 0x18]
push 0
push 0x1003de
lea edx, [ebp - 0x2c4]
mov eax, 0x68a2e4
call fcn.0067d9b4
push dword [ebp - 0x2c4]
push dword [ebp - 0x284]
push 0
push 0x186c04
lea edx, [ebp - 0x2c8]
mov eax, 0x68a300
call fcn.0067d9b4
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040a768
push 0
push 0x1c0404
lea edx, [ebp - 0x2cc]
mov eax, 0x68a31c
call fcn.0067d9b4
mov eax, dword [ebp - 0x2cc]
mov ecx, 1
mov edx, dword [ebp - 0x284]
call fcn.0040aa60
cdq
push edx
push eax
push 0xffffffffffffffff
push 0xffe9c3f0
push 0
push 0x163c11
call fcn.0067d81c
cmp edx, dword [esp + 4]
jne 0x68a0d2
cmp eax, dword [esp]
pop edx
pop eax
je 0x68a0e1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push 0
push 0x1a1a5c
push 0
push 0x1a1a5c
call fcn.0067d81c
push edx
push eax
lea eax, [ebp - 0x298]
call fcn.004249b0
cdq
cmp edx, dword [esp + 4]
jne 0x68a10b
cmp eax, dword [esp]
pop edx
pop eax
je 0x68a036
lea eax, [ebp - 0x298]
call fcn.004249d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x68a141
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a18c
lea eax, [ebp - 0x2cc]
mov edx, 0xd
call fcn.0040991c
lea eax, [ebp - 0x298]
mov edx, dword [0x41bdec]
call fcn.0040b1e8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040991c
lea eax, [ebp - 8]
call fcn.0040e574
ret