Function at 0x405223
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b786f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d4
call fcn.005788a0
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2074], eax
mov byte [ebp - 0x2055], 0
mov esi, 0x1000
push esi
lea eax, [ebp - 0x201c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
ja 0x4056d4
push 0x68a1a8
push esi
lea eax, [ebp - 0x201c]
push eax
call fcn.0057431d
add esp, 0xc
test eax, eax
jne 0x4056d4
lea eax, [ebp - 0x2068]
push eax
push 0x5cda5c
push 1
xor ebx, ebx
push ebx
push 0x5cda4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4056cc
push dword [ebp - 0x2068]
lea esi, [ebp - 0x209c]
call fcn.0040debe
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
lea edx, [ebp - 0x2070]
push edx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x4056b3
push dword [ebp - 0x2070]
lea esi, [ebp - 0x20a8]
call fcn.0040df12
mov byte [ebp - 4], 1
mov dword [ebp - 0x205c], ebx
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x2070]
mov ecx, dword [eax]
lea edx, [ebp - 0x205c]
push edx
lea edx, [ebp - 0x2060]
push edx
push 5
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x40569a
cmp dword [ebp - 0x205c], ebx
je 0x40569a
push edi
push dword [ebp - 0x2060]
lea esi, [ebp - 0x2094]
call fcn.0040df66
mov byte [ebp - 4], 2
cmp dword [ebp - 0x205c], ebx
je 0x40567c
dec dword [ebp - 0x205c]
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
lea edx, [ebp - 0x2064]
push edx
push 0x5cda6c
mov edx, dword [ebp - 0x2060]
mov esi, dword [ebp - 0x205c]
push dword [edx + esi*4]
push eax
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x40535b
push dword [ebp - 0x2064]
lea esi, [ebp - 0x20a4]
call fcn.0040dfb9
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push edi
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
push dword [ecx + eax*4]
lea esi, [ebp - 0x2098]
call fcn.0040e00d
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x206c]
push edx
push eax
call dword [ecx + 0x84]
cmp eax, ebx
jl 0x405631
push edi
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2090]
call fcn.0040e00d
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x2078]
push edx
push eax
call dword [ecx + 0x94]
cmp eax, ebx
jl 0x405622
push edi
push dword [ebp - 0x2078]
lea esi, [ebp - 0x208c]
call fcn.0040e00d
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2064]
mov ecx, dword [eax]
lea edx, [ebp - 0x207c]
push edx
push eax
call dword [ecx + 0x8c]
cmp eax, ebx
jl 0x405613
push edi
push dword [ebp - 0x207c]
lea esi, [ebp - 0x20a0]
call fcn.0040e00d
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.00405111
mov byte [ebp - 4], 9
mov dword [ebp - 0x2088], ebx
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2084]
push eax
call fcn.004085d2
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
push dword [ecx + eax*4]
lea eax, [ebp - 0x2080]
push eax
call fcn.004085d2
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2038]
call fcn.00408187
mov byte [ebp - 4], 0xa
push 0x689dd4
mov eax, esi
push eax
call fcn.004081d4
push dword [ebp - 0x207c]
mov eax, esi
push eax
call fcn.004081d4
push dword [ebp - 0x2078]
lea esi, [ebp - 0x2054]
call fcn.00408187
mov byte [ebp - 4], 0xb
push 0x689ecc
mov eax, esi
push eax
call fcn.004081d4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2038]
mov ecx, esi
call fcn.004097a9
cmp dword [ebp - 0x203c], 8
mov ecx, dword [ebp - 0x2050]
jae 0x405527
lea ecx, [ebp - 0x2050]
lea eax, [ebp - 0x20c4]
push eax
call fcn.0040486d
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.00406435
add esp, 0x10
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 0xb
push 0
push 1
lea esi, [ebp - 0x20c4]
call fcn.00409bbf
test bl, bl
je 0x4055cc
cmp dword [ebp - 0x2020], 8
mov ecx, dword [ebp - 0x2034]
jae 0x405583
lea ecx, [ebp - 0x2034]
lea eax, [ebp - 0x20e0]
push eax
call fcn.0040486d
mov byte [ebp - 4], 0xd
push 0
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.00406435
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 0xb
push 0
push 1
lea esi, [ebp - 0x20e0]
call fcn.00409bbf
test bl, bl
je 0x4055cc
mov byte [ebp - 0x2055], 1
mov byte [ebp - 4], 0xa
push 0
push 1
lea esi, [ebp - 0x2054]
call fcn.00409bbf
mov byte [ebp - 4], 9
push 0
push 1
lea esi, [ebp - 0x2038]
call fcn.00409bbf
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.00405144
mov byte [ebp - 4], 7
lea esi, [ebp - 0x20a0]
call fcn.0041b936
xor ebx, ebx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x208c]
call fcn.0041b936
mov byte [ebp - 4], 5
lea esi, [ebp - 0x2090]
call fcn.0041b936
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2098]
call fcn.0041b936
mov dword [ebp - 4], 3
jmp 0x40565e
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x20a4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x40535b
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2094]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x405315
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x20a8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x209c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x2055]
jmp 0x4056d6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0057340c
leave
ret