Function at 0x463220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7167
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x430]
mov dword [ebp - 0x44c], 0
push 0
push eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x440], str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
mov dword [ebp - 0x43c], 0x26
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x20a
push 0
push eax
call fcn.004a73c0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00496140
mov dword [ebp - 0x444], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4632e9
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 1
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x463310
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x454], ebx
push ecx
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.00463070
test eax, eax
je 0x463411
push ebx
push 0x4f68f4
push 0x515408
mov dword [ebp - 0x448], 1
call fcn.0048be90
add esp, 0xc
lea eax, [ebp - 0x44c]
lea ecx, [ebp - 0x440]
push eax
push 4
lea eax, [ebp - 0x448]
push eax
push str.DefaultBrowserLock
call fcn.00496300
lea eax, [ebp - 0x44c]
push eax
push 4
lea eax, [ebp - 0x444]
push eax
push str.DefaultBrowserId
lea ecx, [ebp - 0x440]
call fcn.00496300
mov eax, dword [ebp - 0x450]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x4633be
push edi
lea ecx, [ebp - 0x450]
call fcn.0041cb00
mov eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [edi + edi*2]
push ecx
push eax
push str.DefaultBrowserInstallDir
lea ecx, [ebp - 0x440]
call fcn.00496300
cmp dword [ebx - 4], 1
mov edi, dword [ebx - 0xc]
jle 0x4633f5
push edi
lea ecx, [ebp - 0x454]
call fcn.0041cb00
mov ebx, dword [ebp - 0x454]
lea eax, [ebp - 0x44c]
push eax
lea eax, [edi + edi*2]
push eax
push ebx
push str.DefaultBrowserProcessPath
lea ecx, [ebp - 0x440]
call fcn.00496300
mov ecx, esi
call fcn.00463600
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
jle 0x46342f
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.00463780
xor esi, esi
mov dword [ebp - 0x444], esi
call fcn.0041bef0
test eax, eax
je 0x4632df
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x458], edi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x106
or eax, ecx
jge 0x463482
push 0x106
lea ecx, [ebp - 0x458]
call fcn.0041cbd0
mov edi, dword [ebp - 0x458]
cmp dword [edi - 8], 0x106
jl 0x4635f0
xor eax, eax
mov dword [edi - 0xc], 0x106
push eax
push esi
push edi
push eax
mov word [edi + 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [edi - 8]
mov dword [ebp - 0x448], eax
push edi
call fcn.004aa82a
add esp, 8
test eax, eax
js 0x4635f0
cmp eax, dword [edi - 8]
jg 0x4635f0
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x448], ecx
je 0x46355a
call fcn.0041bef0
test eax, eax
je 0x4632df
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x448], eax
push esi
push str.defSpecialFolderPath_Cache_
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 4
push str._s_d
push eax
call fcn.00422000
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 0x44c]
mov esi, dword [ebp - 0x448]
add esp, 0x10
add eax, eax
push ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x440]
call fcn.00496300
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463554
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x444]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x463576
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
mov dword [ebp - 0x444], esi
cmp esi, 0x3d
jle 0x463437
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4635a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x450]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4635c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x4635d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041ce60
int3