Function at 0x408de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x288c
call fcn.004125f0
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x2888], eax
push edi
mov edi, dword [ebp + 8]
mov eax, 1
mov dword [ebp - 0x2884], eax
mov dword [ebp - 0x2880], eax
xor eax, eax
push 0x2450
mov dword [ebp - 0x2878], ecx
push eax
lea ecx, [ebp - 0x2868]
push ecx
mov dword [ebp - 0x287c], edi
mov dword [ebp - 0x288c], edx
mov dword [ebp - 0x2874], 0
mov word [ebp - 0x286c], ax
call fcn.004123b0
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jne 0x408e75
test ebx, ebx
jne 0x408e75
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x286c]
push edx
push edi
call section..text
add esp, 0xc
test eax, eax
je 0x409115
push 0x62b30
call fcn.00412de0
add esp, 4
test eax, eax
je 0x409115
push esi
mov ecx, eax
call fcn.004059d0
mov esi, eax
test esi, esi
je 0x409114
push edi
mov ecx, esi
call fcn.00408cb0
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0x26a8], ecx
push ebx
mov ecx, esi
mov dword [esi + 0x2468], 1
mov dword [esi + 0x62acc], eax
mov dword [esi + 0x26a0], 0x408d30
mov dword [esi + 0x269c], edx
call fcn.00406790
mov eax, dword [ebp + 0x28]
push eax
mov ecx, esi
call fcn.00406790
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00406790
cmp dword [ebp + 0xc], 0
je 0x409016
cmp dword [ebp + 0x14], 0
jne 0x409016
lea edx, [ebp - 0x2870]
push edx
push 0
push edi
mov dword [ebp - 0x2870], 0
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
test eax, eax
jne 0x409016
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409016
mov eax, dword [ebp - 0x2870]
push eax
call fcn.00412200
mov edi, eax
add esp, 4
test edi, edi
je 0x409010
mov ecx, dword [ebp - 0x2870]
push ecx
push 0
push edi
call fcn.004123b0
mov ecx, dword [ebp - 0x287c]
mov edx, dword [ebp - 0x2870]
add esp, 0xc
lea eax, [ebp - 0x2870]
push eax
push edi
push ecx
mov dword [edi], edx
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
test eax, eax
je 0x408ffa
mov edx, dword [edi + 8]
push edx
mov ecx, esi
mov dword [ebp - 0x2884], 0
mov dword [ebp - 0x2874], 1
call fcn.00408cf0
cmp dword [ebp + 0x1c], 0
je 0x408fe0
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x2878]
push eax
push 0x4227a8
push 0x104
push ecx
call fcn.0041246a
add esp, 0x10
jmp 0x408ffa
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
push edx
push esi
push eax
push ebx
mov dword [ebp - 0x2880], 0
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call fcn.004132ac
add esp, 4
cmp dword [ebp - 0x2884], 0
je 0x409101
mov edi, dword [ebp - 0x287c]
mov ebx, dword [ebp - 0x2878]
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x416]
push edx
mov word [ebp - 0x418], cx
call fcn.004123b0
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jne 0x409048
lea ebx, [ebp - 0x418]
jmp 0x409050
test ebx, ebx
je 0x409101
cmp dword [ebp + 0xc], 0
je 0x40906b
mov eax, dword [ebp - 0x2888]
push 0
push ebx
push eax
push 0
push edi
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
jmp 0x4090b5
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.004123b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x42282c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor edx, edx
cmp dx, word [ebx]
je 0x409101
push ebx
mov ecx, esi
call fcn.00408cf0
mov ecx, esi
call fcn.00408bf0
test eax, eax
je 0x409101
cmp dword [ebp + 0x1c], 0
je 0x40912b
mov ecx, esi
call fcn.00401100
mov eax, dword [ebp - 0x288c]
test eax, eax
je 0x4090ee
mov ecx, dword [esi + 0x5d118]
mov dword [eax], ecx
cmp dword [esi + 0x5d118], 7
jne 0x409101
mov dword [ebp - 0x2874], 1
cmp dword [ebp - 0x2880], 0
je 0x409114
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
pop esi
mov eax, dword [ebp - 0x2874]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov dword [ebp - 0x2874], 1
mov eax, dword [ebp - 0x2874]
pop edi
xor ecx, ebp
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret