Function at 0x42d510
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xc64]
sub esp, 0xc64
push 0xffffffffffffffff
push 0x5023f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0xc60], 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 + 0xc6c]
mov ecx, eax
mov esi, dword [ebp + 0xc70]
mov dword [ebp + 0x1c], eax
call fcn.0040a730
test al, al
jne 0x42d9b3
lea eax, [esi + 0x30]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040a730
test al, al
jne 0x42d9b3
mov ecx, esi
call fcn.0040a730
test al, al
jne 0x42d9b3
lea ecx, [esi + 0x18]
call fcn.0040a730
test al, al
jne 0x42d9b3
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.0040a730
test al, al
jne 0x42d9b3
lea ecx, [esi + 0x60]
call fcn.0040a730
test al, al
jne 0x42d9b3
mov edx, 0x52bb04
mov ecx, edi
call fcn.0040b840
test al, al
je 0x42d5e3
mov edx, 0x52a038
mov ecx, edi
call fcn.0040b840
test al, al
jne 0x42d9b3
mov ecx, dword [ebx]
push esi
add ecx, 4
call fcn.0042d9e0
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc74]
push dword [ebp + 0x1c]
mov dword [ecx + 0xc4], eax
lea ecx, [ebp]
call fcn.0040a8b0
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.004141e0
add esp, 4
test al, al
jne 0x42d626
lea ecx, [ebp]
call fcn.00414980
lea eax, [ebp]
push eax
call fcn.004141e0
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 4
test al, al
jne 0x42d764
push 0x553158
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 0
call fcn.0040eb00
mov byte [ebp - 4], 1
mov ecx, 0x553134
call fcn.0040a730
test al, al
jne 0x42d698
mov ecx, 0x553134
call fcn.00402fb0
lea ecx, [ebp]
cmp ecx, eax
je 0x42d758
mov ecx, 0x553134
call fcn.00402fb0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42d68f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x42d750
push 0x20c
lea eax, [ebp + 0xa54]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp + 0xa54]
push eax
push 0x105
call esi
dec eax
cmp eax, 0x103
ja 0x42d758
xor eax, eax
push 0x412
push eax
mov word [ebp + 0xc5e], ax
lea eax, [ebp + 0x434]
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp + 0x434]
push 0x208
push eax
lea eax, [ebp + 0xa54]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x42d739
test eax, eax
je 0x42d739
add eax, eax
cmp eax, 0x412
jae 0x42d9d8
xor ecx, ecx
mov word [ebp + eax + 0x434], cx
lea eax, [ebp + 0x434]
push eax
call fcn.0040acf0
add esp, 4
push eax
lea eax, [ebp + 0x434]
jmp 0x42d74f
lea eax, [ebp + 0xa54]
push eax
call fcn.0040acf0
add esp, 4
push eax
lea eax, [ebp + 0xa54]
push eax
lea ecx, [ebp]
call fcn.0040ab90
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.0040eb20
mov ecx, dword [ebx]
lea eax, [ebp]
push eax
add ecx, 0xcc
call fcn.0040a790
push str.download
lea ecx, [ebp - 0x28]
call fcn.0040a850
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp]
push eax
call fcn.0040a7d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040a7c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp]
push eax
call fcn.0040a7d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040a7c0
lea eax, [ebp]
push eax
call fcn.004141e0
add esp, 4
test al, al
jne 0x42d801
lea ecx, [ebp]
call fcn.00414980
lea eax, [ebp]
push eax
call fcn.004141e0
add esp, 4
test al, al
jne 0x42d925
push 0x553158
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
call fcn.0040eb00
mov byte [ebp - 4], 5
mov ecx, 0x553134
call fcn.0040a730
test al, al
jne 0x42d868
mov ecx, 0x553134
call fcn.00402fb0
lea edx, [ebp]
cmp edx, eax
je 0x42d919
call fcn.00402fb0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42d85f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x42d911
push 0x20c
lea eax, [ebp + 0x848]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp + 0x848]
push eax
push 0x105
call esi
dec eax
cmp eax, 0x103
ja 0x42d919
xor eax, eax
push 0x412
push eax
mov word [ebp + 0xa52], ax
lea eax, [ebp + 0x20]
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp + 0x20]
push 0x208
push eax
lea eax, [ebp + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x42d8fa
test eax, eax
je 0x42d8fa
add eax, eax
cmp eax, 0x412
jae 0x42d9d8
xor ecx, ecx
mov word [ebp + eax + 0x20], cx
lea eax, [ebp + 0x20]
push eax
call fcn.0040acf0
add esp, 4
push eax
lea eax, [ebp + 0x20]
jmp 0x42d910
lea eax, [ebp + 0x848]
push eax
call fcn.0040acf0
add esp, 4
push eax
lea eax, [ebp + 0x848]
push eax
lea ecx, [ebp]
call fcn.0040ab90
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.0040eb20
mov ecx, dword [ebx]
lea eax, [ebp]
push eax
add ecx, 0xe4
call fcn.0040a790
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp]
push eax
call fcn.0040a7d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040a7c0
push str..NewVersion.data
call fcn.0040acf0
add esp, 4
lea ecx, [ebp]
push eax
push str..NewVersion.data
call fcn.0040c160
mov ecx, dword [ebx]
lea eax, [ebp]
push 1
push eax
add ecx, 0xb0
call fcn.004b5c00
mov ecx, dword [ebx]
mov byte [ecx], al
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x42d9a4
mov byte [eax + 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0040a7c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc60]
xor ecx, ebp
call fcn.004d6fd3
lea esp, [ebp + 0xc64]
pop ebp
ret 0xc
call fcn.004d7688
int3