Function at 0x1004ce50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x2a4], eax
push esi
push edi
mov dword [ebp - 0x2a0], ebx
cmp byte [ebx + 8], 3
jae 0x1004cf9e
cmp byte [ebx + 0xe3], 0
jne 0x1004ced7
cmp dword [ebx + 0x78], 0
je 0x1004ced7
push 0
lea edi, [ebx + 0x68]
push 0x7c
mov ecx, edi
lea esi, [ebx + 0xd0]
call fcn.1004e750
cmp eax, 0xffffffff
je 0x1004ceb9
push 0
push esi
push 0x7c
push edi
call fcn.10006680
add esp, 0x10
jmp 0x1004ced7
mov eax, dword [esi + 4]
push edi
cmp dword [esi + 8], eax
je 0x1004cecf
mov ecx, eax
call fcn.10005170
add dword [esi + 4], 0x18
jmp 0x1004ced7
push eax
mov ecx, esi
call fcn.10004ac0
cmp dword [ebx + 0x48], 0
je 0x1004d5e7
push 0
lea esi, [ebx + 0x38]
push 0x7c
mov ecx, esi
lea edi, [ebx + 0xc8]
call fcn.1004e750
cmp eax, 0xffffffff
je 0x1004cf0a
push 0
push edi
push 0x7c
push esi
call fcn.10006670
add esp, 0x10
jmp 0x1004cf3c
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.10043ac0
add esp, 8
mov ecx, edi
push dword [ebp - 0x2a4]
push eax
push 0
lea eax, [ebp - 0x29c]
push eax
call fcn.1002bb40
lea ecx, [ebp - 0x224]
call fcn.10005250
mov eax, dword [ebx + 0xc8]
add ebx, 0xc8
mov esi, dword [eax]
mov dword [ebp - 0x288], esi
cmp esi, eax
je 0x1004d5e7
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x10]
test eax, eax
je 0x1004d676
mov edi, dword [ebx + 0x14]
mov ecx, ebx
cmp edi, 8
jb 0x1004cf72
mov ecx, dword [ebx]
cmp word [ecx], 0x3c
jne 0x1004d4c2
mov edx, ebx
cmp edi, 8
jb 0x1004cf85
mov edx, dword [ebx]
test eax, eax
je 0x1004cf9e
mov ecx, eax
mov edi, edx
lea ecx, [ecx]
cmp word [edi], 0x3e
je 0x1004cfb3
add edi, 2
sub ecx, 1
jne 0x1004cf90
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x1004cf9e
sub edi, edx
sar edi, 1
cmp edi, 0xffffffff
je 0x1004cf9e
lea edx, [edi + 1]
mov dword [ebp - 0x274], 0
xor ecx, ecx
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], cx
cmp eax, edx
jb 0x1004d676
mov ecx, eax
sub eax, edx
sub ecx, edi
cmp eax, ecx
jb 0x1004cff4
mov eax, ecx
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x1004cffe
mov ecx, dword [ebx]
push eax
lea eax, [ecx + edx*2]
push eax
lea ecx, [ebp - 0x284]
call fcn.100070c0
xor eax, eax
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x258], 7
cmp eax, 1
jb 0x1004d676
dec edi
dec eax
cmp eax, edi
jb 0x1004d03f
mov eax, edi
cmp dword [ebx + 0x14], 8
jb 0x1004d047
mov ebx, dword [ebx]
push eax
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 0x26c]
call fcn.100070c0
push 0
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x290], 0
push 0x2c
push eax
mov dword [ebp - 0x28c], 0
call fcn.10006680
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x290]
xor ecx, ecx
mov edi, dword [ebp - 0x294]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x298], ecx
add esp, 0x1c
mov ecx, ebx
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1004d3a1
xor esi, esi
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [edi + esi]
cmp dword [eax + 0x14], 8
jb 0x1004d0e7
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__wtoi
mov edi, eax
add esp, 4
cmp edi, 0x10000
jl 0x1004d100
lea eax, [edi - 0x10000]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004d365
cmp edi, 0x1a
jne 0x1004d126
push str.MicrosoftInternet_ExplorerQuick_Launch_
jmp 0x1004d133
cmp edi, 0x1001a
jne 0x1004d140
push str.MicrosoftWindowsStart_MenuProgramsAccessories_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004d173
sub eax, edx
lea ecx, [ebp - 0x23c]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100070c0
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
jb 0x1004d1aa
mov eax, dword [ebp - 0x284]
push dword [ebp - 0x274]
lea ecx, [ebp - 0x23c]
push eax
call fcn.10006d70
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
jb 0x1004d1d1
mov eax, dword [ebp - 0x23c]
push 1
push 0x102053b4
push 0
push dword [ebp - 0x22c]
push eax
call fcn.1002bcf0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x1004d318
push 1
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x10202944
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.100070c0
push 1
xor eax, eax
mov dword [ebp - 0x244], 0
push 0x102054a0
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.100070c0
push edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10006610
add esp, 0x10
lea ecx, [ebp - 0x254]
call fcn.10005250
lea ecx, [ebp - 0x224]
call fcn.10005250
push 1
xor eax, eax
mov dword [ebp - 0x244], 0
push 0x10202944
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.100070c0
push 2
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x10205498
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.100070c0
push edi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10006610
add esp, 0x10
lea ecx, [ebp - 0x224]
call fcn.10005250
lea ecx, [ebp - 0x254]
call fcn.10005250
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10043ac0
mov ecx, dword [ebp - 0x2a0]
add esp, 8
push dword [ebp - 0x2a4]
lea ecx, [ecx + 0xc8]
push eax
push 0
lea eax, [ebp - 0x2ac]
push eax
call fcn.1002bb40
lea ecx, [ebp - 0x224]
call fcn.10005250
lea ecx, [ebp - 0x23c]
call fcn.10005250
mov ebx, dword [ebp - 0x290]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x294]
mov ecx, ebx
inc dword [ebp - 0x298]
sub ecx, edi
imul ecx
add esi, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x298], eax
jb 0x1004d0d3
mov esi, dword [ebp - 0x288]
test edi, edi
je 0x1004d425
lea eax, [ebp - 0x294]
push eax
push ebx
push edi
call fcn.10004870
mov ecx, dword [ebp - 0x28c]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x294]
add esp, 0xc
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1004d3fd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d671
push ecx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x1004d465
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004d45b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d671
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edx, dword [ebp - 0x270]
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
cmp edx, 8
jb 0x1004d4c2
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004d4b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d671
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1004d4ee
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1004d4e4
cmp esi, dword [eax + 8]
jne 0x1004d4e4
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1004d4d4
mov esi, eax
mov dword [ebp - 0x288], esi
jmp 0x1004d512
mov esi, eax
mov dword [ebp - 0x288], esi
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1004d512
mov edi, edi
mov eax, dword [ecx]
mov esi, ecx
mov dword [ebp - 0x288], esi
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1004d500
mov ebx, dword [ebp - 0x2a0]
add ebx, 0xc8
mov eax, dword [ebx]
cmp esi, eax
jne 0x1004cf58
mov esi, dword [eax]
cmp esi, eax
je 0x1004d5e7
cmp dword [esi + 0x20], 0
lea edi, [esi + 0x10]
jbe 0x1004d676
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1004d549
mov eax, dword [edi]
movzx eax, word [eax]
cmp eax, 0x3c
je 0x1004d5a9
cmp eax, 0x25
jne 0x1004d604
mov eax, dword [ebp - 0x2a4]
add eax, 0x74
cmp dword [eax + 0x14], 8
jb 0x1004d56b
mov eax, dword [eax]
push eax
push edi
call fcn.100456a0
add esp, 8
push edi
test al, al
jne 0x1004d5fc
mov eax, dword [ebp - 0x2a0]
movzx eax, byte [eax + 0xe0]
push eax
call fcn.10037810
add esp, 8
test eax, eax
jne 0x1004d604
push edi
call fcn.10045350
add esp, 4
test al, al
jne 0x1004d604
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x298], esi
call fcn.10014d60
push esi
mov ecx, ebx
call fcn.100151b0
mov esi, eax
lea ecx, [esi + 0x10]
push ecx
push ebx
call fcn.10031ab0
push 0x28
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0x298]
add esp, 0x10
cmp esi, dword [ebx]
jne 0x1004d532
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.10037c10
add esp, 4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1004d60e
mov eax, dword [edi]
push 1
push 0x102053b4
push 0
push dword [edi + 0x10]
push eax
call fcn.1002bcf0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1004d5a9
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1004d654
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1004d650
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x1004d650
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1004d640
mov esi, eax
jmp 0x1004d5df
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1004d5df
mov edi, edi
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1004d660
jmp 0x1004d5df
call fcn.101e6c40
call fcn.10006b50
int3