Function at 0x401fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434378
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], ecx
call fcn.00404c30
cmp word [eax + 0xd46], 0
lea esi, [eax + 0xd46]
jne 0x402045
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x402045
push esi
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x402045
xor esi, esi
sub esp, 0x10
lea ecx, [ebp - 0x17c]
push 0
push esi
call fcn.00407d90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x39
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push str.SGAIAssistantBrowserSGMiniBrowserHelperHost1.0.0.8.dll
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.004023f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x170]
cmp byte [ebp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
cmove edx, dword [ebp - 0x174]
add edx, 4
mov dword [ebp - 0x30], 0
mov ecx, edx
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020b3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004023f0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18c]
lea ecx, [ebp - 0x28]
call fcn.004024a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x402124
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40211a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402240
push ecx
push edx
call fcn.00416ae4
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x402162
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402158
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402240
push ecx
push edx
call fcn.00416ae4
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 8
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x188]
mov dword [ecx], eax
test eax, eax
je 0x40219e
push str.GetBrowserManagerInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x184]
push esi
call eax
add esp, 4
jmp 0x4021a4
mov esi, dword [ebp - 0x184]
cmp dword [esi], 0
mov ecx, dword [ebp - 0x14]
setne byte [ebp - 0x17d]
cmp ecx, 8
jb 0x4021e4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4021da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402240
push ecx
push edx
call fcn.00416ae4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x60], al
jne 0x402220
mov ecx, dword [ebp - 0x174]
lea eax, [ebp - 0x170]
cmp ecx, eax
je 0x402220
push ecx
call fcn.0041fd4b
add esp, 4
mov al, byte [ebp - 0x17d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret
call fcn.0041bd8d
int3