Function at 0x40da60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf475
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
push 0x20
mov byte [ebp - 4], 1
call fcn.005a5a6a
add esp, 4
mov dword [edi + 8], eax
test eax, eax
jne 0x40dad0
push str.CDownload::DoDownloadLatestXML_DOWNLOAD_LIST_malloc___failed
jmp 0x40daf8
mov dword [eax], 1
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 0x40db11
push str.CDownload::DoDownloadLatestXML_DOWNLOAD_INFO_malloc___failed
call fcn.00415fc0
mov eax, dword [edi + 8]
test eax, eax
je 0x40db0a
push eax
call fcn.00410210
xor esi, esi
jmp 0x40dec0
mov dword [eax + 0x14], 0
cmp dword [ebp + 0x20], 8
push 0xc350
push 2
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push str.LATEST_XML
push eax
call fcn.0040ff70
mov ecx, dword [edi + 8]
push str.ONLINEFLAG
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0x254]
call fcn.004051f0
mov byte [ebp - 4], 2
mov ecx, dword [0x6fb010]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ecx + 0xc]
call fcn.004070c0
cmp eax, 1
sete bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x240], 8
jb 0x40db87
push dword [ebp - 0x254]
call fcn.0048166b
add esp, 4
test bl, bl
je 0x40dc57
push 0x60f994
lea ecx, [ebp - 0x26c]
call fcn.004051f0
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 3
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ecx + 0x1c]
call fcn.00406e30
push eax
lea ecx, [ebp - 0x23c]
call fcn.004052c0
cmp dword [ebp - 0x240], 8
jb 0x40dbe2
push dword [ebp - 0x254]
call fcn.0048166b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x40dc1a
push dword [ebp - 0x26c]
call fcn.0048166b
add esp, 4
cmp dword [ebp - 0x228], 8
mov edx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x23c]
lea edx, [edx + 1]
call fcn.0047cfc0
mov ecx, dword [edi + 8]
push str.LATEST_XML
mov dword [ecx + 0x1c], eax
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x1c]
push dword [eax + 4]
push 0x60e0d4
jmp 0x40dcb0
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.005a7690
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0047cfc0
mov ecx, dword [edi + 8]
push str.LATEST_XML
mov dword [ecx + 0x1c], eax
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x1c]
push dword [eax + 4]
push str._s_s
mov eax, dword [ecx + 4]
push 0xffffffffffffffff
mov eax, dword [eax]
add eax, 0x2c
push 0x104
push eax
call fcn.005a4e29
add esp, 0x18
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
xor ecx, ecx
mov dword [ebp - 0x22c], 0
mov word [eax], cx
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
push dword [edi + 8]
mov ecx, edi
call fcn.0040ec90
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x26c]
mov eax, dword [eax + 4]
mov eax, dword [eax]
add eax, 0x2c
push eax
call fcn.004051f0
push str.WORK_DLXMLFOLDER
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.004051f0
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 5
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x240], 8
jb 0x40dd60
push dword [ebp - 0x254]
call fcn.0048166b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x40dd98
push dword [ebp - 0x26c]
call fcn.0048166b
add esp, 4
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x26c]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
push dword [eax + 4]
call fcn.004051f0
push str.LATEST_XML.PATH
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.004051f0
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 7
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x240], 8
jb 0x40ddfc
push dword [ebp - 0x254]
call fcn.0048166b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x40de34
push dword [ebp - 0x26c]
call fcn.0048166b
add esp, 4
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.CDownload::DoDownloadLatestXML_LATEST_XML.PATH:_s
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
cmp dword [0x6fd8d0], 8
mov dword [0x6fd8cc], 0
mov eax, 0x6fd8bc
cmovae eax, dword [0x6fd8bc]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax]
add edx, 0x2c
cmp word [edx], cx
je 0x40deaf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dea0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x6fd8bc
call fcn.004058d0
mov esi, 1
cmp dword [ebp - 0x228], 8
jb 0x40ded7
push dword [ebp - 0x23c]
call fcn.0048166b
add esp, 4
xor eax, eax
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
jb 0x40df05
push dword [ebp + 0xc]
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 - 0x14]
xor ecx, ebp
call fcn.005a4646
mov esp, ebp
pop ebp
ret 0x1c