Function at 0x41dec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47079c
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov edi, ecx
push str.DisableCancel
lea ecx, [esp + 0x14]
call fcn.004018b0
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x258], 0
call fcn.0041cc10
mov dword [esp + 0x250], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41df51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 5
push 0
mov byte [edi + 0x2dc], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x41df7f
lea edx, [esp + 0x34]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41df86
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [edi + 0x1e8]
push eax
mov ecx, esi
call fcn.00406b60
push 1
push 0x480d88
mov ecx, esi
call fcn.00412070
call fcn.0040ae90
add eax, 0xa40
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41dfc5
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00412070
push 9
push 0x4823d8
mov ecx, esi
call fcn.00412070
lea ecx, [esp + 0x18]
push ecx
push ecx
call fcn.0040ae90
add esp, 4
mov ecx, eax
call fcn.0040d950
mov dword [esp + 0x250], 1
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x41e01a
lea eax, [esp + 0x1c]
push eax
push str.InitiateDownloadThread:_Setup_to_download:__s
push 0
push 0x7d7
push str.CWebInstallerDlg::InitiateDownloadThread
call fcn.00430235
mov eax, dword [edi + 0x20]
add esp, 0x14
push eax
lea eax, [edi + 0x2dc]
push eax
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00413a30
add esp, 0x10
test al, al
jne 0x41e19d
mov dword [edi + 0x2d8], 4
call fcn.0043ec5a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41e079
push 0x80004005
call fcn.004016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x250], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.Unable_to_initiate_DownloadAsync_Thread._Error_code_from_system___d
push ecx
call fcn.004090f0
mov ebx, dword [esp + 0x1c]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e0b3
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0x2bc]
push ebx
mov ecx, esi
call fcn.00406b60
cmp dword [esi + 0x18], 8
jb 0x41e0dc
mov eax, dword [esi + 4]
jmp 0x41e0df
lea eax, [esi + 4]
push eax
push str.InitiateDownloadThread:_DownloadAsync_failed_to_Initiate_Thread___s
push 0
push 0x7e4
push str.CWebInstallerDlg::InitiateDownloadThread
call fcn.00430235
add esp, 0x14
cmp dword [esi + 0x18], 8
jb 0x41e104
mov eax, dword [esi + 4]
jmp 0x41e107
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.004018b0
mov byte [esp + 0x250], 3
mov edx, dword [edi]
mov edx, dword [edx + 0x180]
lea eax, [esp + 0x14]
push eax
push 0xd8cd5
mov ecx, edi
call edx
mov byte [esp + 0x250], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00402b80
push 0xffffffffffffffff
mov edi, eax
push 0
push esi
lea ecx, [edi + 0x204]
call fcn.00406a70
push 7
mov ecx, edi
call fcn.00402d60
lea eax, [ebx - 0x10]
mov byte [esp + 0x250], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e1e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e1e4
mov ecx, dword [edi + 0x20]
push 0
push 0x1388
push 6
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x274], eax
mov dword [edi + 0x2d8], 2
call fcn.00402b80
push 0xffffffffffffffff
mov esi, eax
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x1cc]
call fcn.00406a70
push 2
mov ecx, esi
call fcn.00402d60
cmp dword [esp + 0x30], 8
jb 0x41e1f8
mov eax, dword [esp + 0x1c]
push eax
call fcn.00430f55
add esp, 4
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0044de0c
mov esp, ebp
pop ebp
ret