Function at 0x406ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [ebp + 0x28]
cmp eax, 1
push ebx
push esi
push edi
jne 0x406c43
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x104
call esi
test eax, eax
mov ebx, dword [ebp + 0x24]
je 0x406b88
lea edi, [esp + 0x10]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406b30
mov ecx, dword [str.Cookies]
mov edx, dword [0x47bc8c]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x30]
push edx
call fcn.00407920
lea eax, [esp + 0x10]
push eax
push 0x104
call esi
test eax, eax
je 0x406e85
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406ba1
mov ecx, dword [str.Cookies]
mov edx, dword [0x47bc8c]
mov dword [edi], ecx
mov dword [edi + 4], edx
lea edi, [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406bc0
mov ax, word [0x47a898]
mov word [edi], ax
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406bd6
mov ecx, dword [str.index.dat]
mov edx, dword [0x47bc64]
mov ax, word [0x47bc68]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x18]
mov word [edi + 8], ax
mov eax, dword [ebp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xc], ebx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x30]
push eax
call fcn.00407b40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp eax, 2
jne 0x406e85
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x118], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
push 0x104
stosb byte es:[edi], al
call ebx
test eax, eax
je 0x406d9d
lea edi, [esp + 0x10]
dec edi
jmp 0x406ca0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406ca0
mov ecx, 6
mov esi, str.Temporary_Internet_Files
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406cc0
mov dx, word [0x47a898]
mov word [edi], dx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406cd7
mov eax, dword [str.Content.IE5]
mov ecx, dword [0x47bc58]
mov dword [edi], eax
mov eax, dword [0x47bc5c]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x118], cl
inc eax
test cl, cl
jne 0x406d00
lea edi, [esp + 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d18
mov word [edi], dx
lea edi, [esp + 0x118]
dec edi
jmp 0x406d30
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d30
mov ecx, dword [str.index.dat]
mov edx, dword [0x47bc64]
mov ax, word [0x47bc68]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x18]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x20]
mov word [edi + 8], ax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00407f60
lea eax, [esp + 0x10]
push eax
push 0x104
call ebx
test eax, eax
je 0x406e85
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406db6
mov ecx, 6
mov esi, str.Temporary_Internet_Files
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406dd0
mov cx, word [0x47a898]
mov word [edi], cx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406de7
mov edx, dword [str.Content.IE5]
mov eax, dword [0x47bc58]
mov dword [edi], edx
mov edx, dword [0x47bc5c]
mov dword [edi + 4], eax
mov dword [edi + 8], edx
lea edi, [esp + 0x10]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406e10
mov word [edi], cx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406e20
mov eax, dword [str.index.dat]
mov ecx, dword [0x47bc64]
mov dx, word [0x47bc68]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 0x18]
sub esp, 0x10
mov word [edi + 8], dx
mov edx, dword [ebp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x30]
push eax
call fcn.00407d60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x24