Function at 0x4498c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca712
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x51eee0]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 4], 0
call fcn.004a7560
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4499be
push str.get_temp_path
lea ecx, [ebp - 0x21c]
call fcn.00401ff0
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0042f540
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x449980
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x520340]
imul eax, eax
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 7
jne 0x4499b7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x520340]
mov edx, 7
test eax, eax
cmove ecx, edx
mov dword [0x520340], ecx
xor bl, bl
jmp 0x449e42
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401ff0
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x449e83
cmp ecx, edx
jg 0x449e83
cmp word [eax + ecx*2], 0x5c
je 0x449a09
push 1
push 0x4d95f8
lea ecx, [ebp - 0x224]
call fcn.0040b980
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x224]
push dword [eax - 0xc]
push eax
call fcn.0040b980
push 0xc
push str._updater.exe
lea ecx, [ebp - 0x224]
call fcn.0040b980
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 3
call fcn.00430c70
add esp, 4
mov edi, eax
mov edx, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, str.geo
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x449aa4
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x449ab4
push esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00407650
jmp 0x449ab4
push str.geo
lea ecx, [ebp - 0x21c]
call fcn.0040b410
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 6
call fcn.0040b660
push str.userscope
push eax
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 7
call fcn.0040b720
cmp byte [ebx + 0xa0], 0
mov edx, 0x4dd764
mov ecx, 0x4dbdfc
cmove ecx, edx
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 8
call fcn.0040b720
add esp, 0x24
mov eax, dword [eax]
lea ecx, [ebp - 0x228]
push dword [eax - 0xc]
mov byte [ebp - 4], 9
push eax
call fcn.0040b980
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 8
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x449b46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449b69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449b8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449baf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449bd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.downloading_update
lea ecx, [ebp - 0x21c]
call fcn.00401ff0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.0042f4b0
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449c1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x520340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 4
jne 0x449c53
mov esi, 1
mov eax, esi
mov edx, 0xe1
dec edx
lea ecx, [eax + esi]
lea esi, [eax]
mov eax, ecx
jns 0x449c43
mov dword [0x520340], ecx
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x230]
call fcn.00438ca0
add esp, 8
lea ecx, [ebp - 0x21c]
test al, al
jne 0x449cb8
push str.download_updater_exe
call fcn.0041fcc0
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.0042f540
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449cb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x449dfc
push str.executing_update
call fcn.00401ff0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.0042f4b0
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449cfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0044ea00
mov ecx, dword [0x521814]
test al, al
mov edx, 0xb442bcab
lea eax, [ebp + 0xc]
cmove ecx, edx
push 0x4da528
push eax
mov dword [0x521814], ecx
call fcn.0040b5a0
add esp, 8
test al, al
jne 0x449d43
lea eax, [ebp + 0xc]
push 0x4dcd4c
push eax
call fcn.0040b5a0
add esp, 8
test al, al
je 0x449d52
push 0
push 0x4d8e30
lea ecx, [ebp + 0xc]
call fcn.00409950
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x230], esp
mov esi, esp
push eax
call fcn.00404840
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 0xd
call fcn.00404840
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 3
call fcn.00450100
add esp, 8
lea ecx, [ebp - 0x21c]
push str.update_done
mov byte [ebp - 0x21d], al
call fcn.00401ff0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.0042f4b0
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449de7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0044eae0
test al, al
jne 0x449df6
dec dword [0x520340]
mov bl, byte [ebp - 0x21d]
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449e1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449e42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x449e63
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004a63c4
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00404480
int3