Function at 0x40e4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf50e
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x65a000]
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 edi, ecx
mov dword [ebp - 0x2a8], edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], eax
mov word [ebp - 0x268], ax
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], eax
mov word [ebp - 0x280], ax
push 0x20
mov byte [ebp - 4], 2
call fcn.005a5a6a
mov ecx, eax
add esp, 4
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x40e569
push str.CDownload::DoDownloadZIP_DOWNLOAD_LIST_malloc___Failed
jmp 0x40ebbe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 2
mov dword [ecx], eax
mov esi, dword [edi + 8]
mov eax, dword [esi]
shl eax, 2
push eax
call fcn.005a5a6a
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
add esp, 4
cmp dword [eax + 4], 0
jne 0x40e59d
push str.CDownload::DoDownloadZIP_DOWNLOAD_INFO_malloc___Failed
jmp 0x40ebbe
push str.ONLINEFLAG
lea ecx, [ebp - 0x238]
mov dword [eax + 0x14], 0
call fcn.004051f0
mov byte [ebp - 4], 3
mov ecx, dword [0x6fb010]
lea eax, [ebp - 0x238]
push eax
lea ecx, [ecx + 0xc]
call fcn.004070c0
cmp eax, 1
sete al
mov byte [ebp - 4], 2
cmp dword [ebp - 0x224], 8
mov byte [ebp - 0x281], al
jb 0x40e5fa
push dword [ebp - 0x238]
call fcn.0048166b
mov al, byte [ebp - 0x281]
add esp, 4
test al, al
je 0x40e696
push 0x60f994
lea ecx, [ebp - 0x2a0]
call fcn.004051f0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 4
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ecx + 0x1c]
call fcn.00406e30
push eax
lea ecx, [ebp - 0x250]
call fcn.004052c0
cmp dword [ebp - 0x224], 8
jb 0x40e655
push dword [ebp - 0x238]
call fcn.0048166b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28c], 8
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
jb 0x40e68d
push dword [ebp - 0x2a0]
call fcn.0048166b
add esp, 4
push 0xa
push 0x60fdd8
jmp 0x40e709
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.005a7690
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x220], 0
jne 0x40e6d4
xor ecx, ecx
jmp 0x40e6ef
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e6e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.004058d0
push 9
push str.DL_FOLDER
lea ecx, [ebp - 0x250]
call fcn.004057a0
cmp dword [0x6fd8b8], 8
mov eax, 0x6fd8a4
cmovae eax, dword [0x6fd8a4]
xor edx, edx
push 0xffffffffffffffff
mov dword [0x6fd8b4], 0
mov word [eax], dx
push edx
lea eax, [ebp - 0x250]
push eax
mov ecx, 0x6fd8a4
call fcn.00405440
push str.WORK_DLAPPFOLDER
lea ecx, [ebp - 0x2a0]
call fcn.004051f0
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 5
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28c], 8
jb 0x40e795
push dword [ebp - 0x2a0]
call fcn.0048166b
add esp, 4
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
cmovae ecx, dword [ebp - 0x250]
mov edx, 1
call fcn.00419820
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
cmovae ecx, dword [ebp - 0x250]
call fcn.00419790
cmp eax, 0x80000000
jne 0x40e80b
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
push str.CDownload::DoDownloadZIP_EnsureDir___Failed___Path:_s
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
jmp 0x40ebbe
push 0x60df14
lea ecx, [ebp - 0x2a0]
call fcn.004051f0
push str.DL_CANCEL_EVENT
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 6
call fcn.004051f0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x224], 8
jb 0x40e866
push dword [ebp - 0x238]
call fcn.0048166b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28c], 8
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
jb 0x40e89e
push dword [ebp - 0x2a0]
call fcn.0048166b
add esp, 4
cmp dword [ebp - 0x23c], 8
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x250]
cmovae ecx, dword [ebp - 0x250]
lea edx, [edx + 1]
call fcn.0047cfc0
mov ecx, dword [edi + 8]
mov esi, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
mov esi, dword [esi]
cmp esi, dword [eax + 4]
je 0x40ebac
jmp 0x40e8e0
mov ebx, dword [esi]
test ebx, ebx
je 0x40ebd4
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
mov dword [ebp - 0x258], 0
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
cmp word [edx], cx
jne 0x40e91b
xor eax, eax
jmp 0x40e92f
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e920
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x280]
call fcn.004058d0
push 8
push str..APP_URL
lea ecx, [ebp - 0x280]
call fcn.004057a0
mov ecx, dword [0x6fb010]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ecx + 0xc]
call fcn.00406e30
mov edi, eax
lea eax, [ebp - 0x268]
cmp eax, edi
je 0x40e9b6
cmp dword [ebp - 0x254], 8
jb 0x40e98d
push dword [ebp - 0x268]
call fcn.0048166b
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
call fcn.004053e0
cmp dword [ebp - 0x28c], 8
jb 0x40e9cd
push dword [ebp - 0x2a0]
call fcn.0048166b
add esp, 4
mov eax, dword [ebx]
mov edx, dword [eax + 4]
cmp word [edx], 0
jne 0x40e9dc
xor ecx, ecx
jmp 0x40e9f0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e9e1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x280]
call fcn.004058d0
push 8
push str..DL_SIZE
lea ecx, [ebp - 0x280]
call fcn.004057a0
mov ecx, dword [0x6fb010]
lea eax, [ebp - 0x280]
push eax
lea ecx, [ecx + 0xc]
call fcn.004070c0
mov ecx, dword [ebx]
mov edi, eax
push dword [ecx + 4]
lea ecx, [ebp - 0x238]
call fcn.004051f0
push 3
push 0x60fedc
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 8
call fcn.004057a0
cmp dword [ebp - 0x224], 8
mov edx, dword [ebp - 0x288]
push edi
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x254], 8
push 1
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push ecx
shl edx, 2
push eax
mov dword [ebp - 0x2a4], edx
call fcn.0040ff70
mov edi, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 4]
mov dword [edx + ecx], eax
cmp dword [ebp - 0x224], 8
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
mov eax, dword [ecx + 0x1c]
push dword [eax + 4]
mov eax, dword [ecx + 4]
push 0x60e0d4
mov eax, dword [eax + edx]
push 0xffffffffffffffff
add eax, 0x2c
push 0x104
push eax
call fcn.005a4e29
mov eax, dword [ebx]
add esp, 0x18
mov ebx, dword [eax + 4]
cmp word [ebx], 0
jne 0x40eaed
xor ecx, ecx
jmp 0x40eb01
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eaf2
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x280]
call fcn.004058d0
push 7
push str..DLPATH
lea ecx, [ebp - 0x280]
call fcn.004057a0
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x2a4]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x2a0]
mov eax, dword [eax + edx]
add eax, 0x2c
push eax
call fcn.004051f0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 9
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x28c], 8
jb 0x40eb75
push dword [ebp - 0x2a0]
call fcn.0048166b
add esp, 4
mov ebx, dword [ebp - 0x288]
inc ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x288], ebx
jb 0x40eb9d
push dword [ebp - 0x238]
call fcn.0048166b
add esp, 4
mov eax, dword [ebp + 8]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x40e8e0
mov eax, dword [edi + 8]
mov dword [eax], ebx
mov ecx, dword [edi + 8]
cmp dword [ecx], 0
jne 0x40ebdc
push str.CDownload::DoDownloadZIP_Download_ListNum__0
call fcn.00415fc0
mov eax, dword [edi + 8]
test eax, eax
je 0x40ebd0
push eax
call fcn.00410210
xor esi, esi
jmp 0x40ebf1
mov ebx, dword [ebp - 0x288]
jmp 0x40eba0
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
push dword [edi + 8]
mov ecx, edi
call fcn.0040f460
mov esi, 1
cmp dword [ebp - 0x26c], 8
jb 0x40ec08
push dword [ebp - 0x280]
call fcn.0048166b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x254], 8
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
jb 0x40ec3c
push dword [ebp - 0x268]
call fcn.0048166b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
jb 0x40ec70
push dword [ebp - 0x250]
call fcn.0048166b
add esp, 4
mov eax, esi
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.005a4646
mov esp, ebp
pop ebp
ret 8