Function at 0x4276a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ce97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov dword [esp + 0x2a4], eax
mov eax, dword [0x4800d8]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x1a0], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1a1]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1a0]
stosw word es:[edi], ax
push ecx
push 0x104
mov dword [esp + 0x2c4], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea ecx, [esp + 0x18]
call fcn.004042d0
push eax
push 0x104
push 0x473560
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x14]
call fcn.00404410
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
push 3
push ebx
mov dword [ebx - 8], eax
push esi
mov byte [eax + ebx], 0
call fcn.00427110
test eax, eax
jne 0x4277a1
mov ecx, dword [0x4800dc]
lea eax, [ebx - 0xc]
cmp eax, ecx
je 0x427a54
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427a54
push esi
call fcn.00457c3f
add esp, 4
xor eax, eax
jmp 0x427a8e
mov esi, 0x470fd8
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.0044e0e0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2bc], 1
call fcn.0044bbb0
push 0
push ebx
lea ecx, [esp + 0x2c]
call fcn.0044e190
test al, al
jne 0x427854
push ebx
push str.Failed_to_load__s.
push 4
call fcn.004047f0
mov eax, dword [esp + 0x94]
add esp, 0xc
cmp eax, 0x10
mov byte [esp + 0x2bc], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x470f90
jb 0x427821
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004572e5
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
call fcn.0044c910
mov eax, dword [0x4800dc]
lea edx, [ebx - 0xc]
cmp edx, eax
jmp 0x427779
push str.RISING
lea ecx, [esp + 0x24]
call fcn.00409770
push eax
lea ecx, [esp + 0x28]
call fcn.004089d0
mov esi, eax
push str.PRODUCT
push esi
lea ecx, [esp + 0x28]
call fcn.004089d0
mov edi, eax
push str.VERSION
push edi
lea ecx, [esp + 0x28]
call fcn.00409620
push eax
lea ecx, [esp + 0x20]
call fcn.00405970
push str.NAME
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c4], 2
call fcn.00409620
push eax
lea ecx, [esp + 0x1c]
call fcn.00405970
push str.URLLIST
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2c4], 3
call fcn.004089d0
test eax, eax
jne 0x4278df
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x427970
mov ecx, dword [eax + 0x14]
test ecx, ecx
jl 0x4278f6
cmp ecx, 1
jle 0x427904
mov edx, dword [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x28]
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
je 0x427970
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test esi, esi
mov eax, esi
jne 0x427921
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x42793a
push 0x471108
call fcn.0044dcb0
push str.Download
push eax
call edi
test eax, eax
je 0x427996
test esi, esi
mov eax, esi
jne 0x427957
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax + 4]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x42796a
mov ecx, dword [eax + 0x14]
test ecx, ecx
jl 0x427957
cmp ecx, 1
jg 0x427957
test eax, eax
mov esi, eax
jne 0x427910
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x80]
mov eax, dword [ecx - 8]
test eax, eax
push ebx
jne 0x4279b2
push str.Failed_to_get_download_url_from__s
push 4
call fcn.004047f0
add esp, 0xc
jmp 0x427a28
push esi
lea ecx, [esp + 0x24]
call fcn.00408cc0
mov edi, dword [esp + 0x10]
push eax
lea ecx, [edi + 0x80]
call fcn.00404d30
jmp 0x427974
call fcn.0044a530
mov edx, dword [0x4800d8]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x80]
push eax
push str.CompsVer
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_s__s_s.inf
push eax
mov byte [esp + 0x2d8], 4
call fcn.00405ab0
mov ecx, dword [edi]
push str.CompsVer.inf
push ecx
lea esi, [edi + 0x84]
push 0x473128
push esi
call fcn.00405ab0
mov esi, dword [esi]
mov edx, dword [esp + 0x3c]
add esp, 0x2c
push 3
push esi
push edx
mov ecx, edi
call fcn.00427110
test eax, eax
lea ecx, [esp + 0x10]
jne 0x427a58
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
lea ecx, [esp + 0x1c]
call fcn.004309a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2bc], 0
call fcn.00409730
lea ecx, [esp + 0x14]
call fcn.004309a0
xor eax, eax
jmp 0x427a8e
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
lea ecx, [esp + 0x1c]
call fcn.004309a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2bc], 0
call fcn.00409730
lea ecx, [esp + 0x14]
call fcn.004309a0
mov eax, 1
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret 4