Function at 0x402a40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c4592
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
mov dword [esp + 0x20], eax
call fcn.004990cf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402aa0
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x24c], 0
call fcn.004990cf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402ad5
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 1
call fcn.004990cf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402b07
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
mov bl, 2
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], bl
call fcn.0040ef80
call fcn.00401a20
dec eax
cmp eax, 3
ja case.default.0x402b38
jmp dword [eax*4 + 0x402cf8]
push 0
push 0x1c
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x402b38
lea edx, [esp + 0x28]
push str.Temporary_Internet_Files
push edx
lea edi, [esp + 0x3c]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 3
call fcn.0040ebc0
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x28]
jmp 0x402c26
push 0
push 0x1a
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x402b38
lea edx, [esp + 0x2c]
push str.MicrosoftWindowsCookies
push edx
lea edi, [esp + 0x3c]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 4
call fcn.0040ebc0
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x2c]
jmp 0x402c26
push 0
push 0x1c
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x402b38
lea edx, [esp + 0x1c]
push str.MicrosoftWindowsINETCookies
push edx
lea edi, [esp + 0x3c]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x250], 5
call fcn.0040ebc0
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.default.0x402b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push str.needToRemoveHomePg
push esi
call fcn.00402d10
mov edi, eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x24c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ca3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004a6859
add esp, 0x23c
ret 4