Function at 0x4051ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be1ee
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d4
call fcn.0057edb0
mov eax, dword [0x6c56f8]
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 0x40569f
push 0x691860
push esi
lea eax, [ebp - 0x201c]
push eax
call fcn.0057a5ed
add esp, 0xc
test eax, eax
jne 0x40569f
lea eax, [ebp - 0x2068]
push eax
push 0x5d4a1c
push 1
xor ebx, ebx
push ebx
push 0x5d4a0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x405697
push dword [ebp - 0x2068]
lea esi, [ebp - 0x209c]
call fcn.0040df80
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 0x40567e
push dword [ebp - 0x2070]
lea esi, [ebp - 0x20a8]
call fcn.0040dfd4
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 0x405665
cmp dword [ebp - 0x205c], ebx
je 0x405665
push edi
push dword [ebp - 0x2060]
lea esi, [ebp - 0x2094]
call fcn.0040e028
mov byte [ebp - 4], 2
cmp dword [ebp - 0x205c], ebx
je 0x405647
dec dword [ebp - 0x205c]
mov eax, dword [ebp - 0x2068]
mov ecx, dword [eax]
lea edx, [ebp - 0x2064]
push edx
push 0x5d4a2c
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 0x405326
push dword [ebp - 0x2064]
lea esi, [ebp - 0x20a4]
call fcn.0040e07b
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.0040e0cf
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 0x4055fc
push edi
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2090]
call fcn.0040e0cf
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 0x4055ed
push edi
push dword [ebp - 0x2078]
lea esi, [ebp - 0x208c]
call fcn.0040e0cf
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 0x4055de
push edi
push dword [ebp - 0x207c]
lea esi, [ebp - 0x20a0]
call fcn.0040e0cf
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.0040510b
mov byte [ebp - 4], 9
mov dword [ebp - 0x2088], ebx
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2084]
push eax
call fcn.004085bd
mov eax, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2060]
push dword [ecx + eax*4]
lea eax, [ebp - 0x2080]
push eax
call fcn.004085bd
push dword [ebp - 0x206c]
lea esi, [ebp - 0x2038]
call fcn.00408172
mov byte [ebp - 4], 0xa
push 0x69148c
mov eax, esi
push eax
call fcn.004081bf
push dword [ebp - 0x207c]
mov eax, esi
push eax
call fcn.004081bf
push dword [ebp - 0x2078]
lea esi, [ebp - 0x2054]
call fcn.00408172
mov byte [ebp - 4], 0xb
push 0x691584
mov eax, esi
push eax
call fcn.004081bf
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2038]
mov ecx, esi
call fcn.004097db
cmp dword [ebp - 0x203c], 8
mov ecx, dword [ebp - 0x2050]
jae 0x4054f2
lea ecx, [ebp - 0x2050]
lea eax, [ebp - 0x20c4]
push eax
call fcn.00404867
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.00406400
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.00409bf1
test bl, bl
je 0x405597
cmp dword [ebp - 0x2020], 8
mov ecx, dword [ebp - 0x2034]
jae 0x40554e
lea ecx, [ebp - 0x2034]
lea eax, [ebp - 0x20e0]
push eax
call fcn.00404867
mov byte [ebp - 4], 0xd
push 0
lea ecx, [ebp - 0x2088]
push ecx
push dword [ebp - 0x2074]
mov ecx, eax
call fcn.00406400
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 0xb
push 0
push 1
lea esi, [ebp - 0x20e0]
call fcn.00409bf1
test bl, bl
je 0x405597
mov byte [ebp - 0x2055], 1
mov byte [ebp - 4], 0xa
push 0
push 1
lea esi, [ebp - 0x2054]
call fcn.00409bf1
mov byte [ebp - 4], 9
push 0
push 1
lea esi, [ebp - 0x2038]
call fcn.00409bf1
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2088]
push eax
call fcn.00412ceb
mov byte [ebp - 4], 7
lea esi, [ebp - 0x20a0]
call fcn.00404782
xor ebx, ebx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x208c]
call fcn.00404782
mov byte [ebp - 4], 5
lea esi, [ebp - 0x2090]
call fcn.00404782
mov byte [ebp - 4], 4
lea esi, [ebp - 0x2098]
call fcn.00404782
mov dword [ebp - 4], 3
jmp 0x405629
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 0x405326
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 0x4052e0
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 0x4056a1
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.005796dc
leave
ret