Function at 0x40ad80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0d3d
mov eax, dword fs:[0]
push eax
sub esp, 0xce0
mov eax, dword [0x52f068]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc68], eax
call fcn.00405520
test al, al
jne 0x40b28f
lea eax, [esi + 0x30]
mov ecx, eax
mov dword [ebp - 0xc88], eax
call fcn.00405520
test al, al
jne 0x40b28f
mov ecx, esi
call fcn.00405520
test al, al
jne 0x40b28f
lea ecx, [esi + 0x18]
call fcn.00405520
test al, al
jne 0x40b28f
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.00405520
test al, al
jne 0x40b28f
lea ecx, [esi + 0x60]
call fcn.00405520
test al, al
jne 0x40b28f
push 0x507f28
mov ecx, edi
call fcn.00409ca0
test al, al
jne 0x40ae48
push 0x507f48
mov ecx, edi
call fcn.00409ca0
test al, al
je 0x40b28f
mov ecx, dword [ebx]
push esi
add ecx, 4
call fcn.0040b2c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xc84]
push dword [ebp - 0xc68]
mov dword [eax + 0xc4], 0
call fcn.00405530
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc84]
push eax
call fcn.0046c2d0
add esp, 4
test al, al
jne 0x40ae95
lea ecx, [ebp - 0xc84]
call fcn.0046c8a0
lea eax, [ebp - 0xc84]
push eax
call fcn.0046c2d0
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 4
test al, al
jne 0x40afde
push ecx
lea ecx, [ebp - 0xc6c]
call fcn.00403800
push 0x531b0c
call fcn.00404230
mov byte [ebp - 4], 1
mov ecx, 0x531b1c
call fcn.00405520
test al, al
jne 0x40af0f
mov ecx, 0x531b1c
call fcn.00402870
lea ecx, [ebp - 0xc84]
cmp ecx, eax
je 0x40afcf
mov ecx, 0x531b1c
call fcn.00402870
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40af06
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x40afc4
push 0x20c
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x105
call esi
dec eax
cmp eax, 0x103
ja 0x40afcf
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x84c]
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x84c]
push 0x208
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40afad
test eax, eax
je 0x40afad
add eax, eax
cmp eax, 0x412
jae 0x40b2ad
xor ecx, ecx
mov word [ebp + eax - 0x84c], cx
lea eax, [ebp - 0x84c]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x84c]
jmp 0x40afc3
lea eax, [ebp - 0x224]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0xc84]
call fcn.004028e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc6c]
call fcn.00404260
mov ecx, dword [ebx]
lea eax, [ebp - 0xc84]
push eax
add ecx, 0xcc
call fcn.00403c70
push str.download
lea ecx, [ebp - 0xca0]
call fcn.00402800
mov byte [ebp - 4], 2
lea eax, [ebp - 0xca0]
push eax
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0xcb8]
push eax
call fcn.0046cfd0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc84]
push eax
call fcn.00403ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcb8]
call fcn.004027f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xca0]
call fcn.004027f0
push edi
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0xcd0]
push eax
call fcn.0046cfd0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc84]
push eax
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcd0]
call fcn.004027f0
lea eax, [ebp - 0xc84]
push eax
call fcn.0046c2d0
add esp, 4
test al, al
jne 0x40b0a5
lea ecx, [ebp - 0xc84]
call fcn.0046c8a0
lea eax, [ebp - 0xc84]
push eax
call fcn.0046c2d0
add esp, 4
test al, al
jne 0x40b1e6
push ecx
lea ecx, [ebp - 0xc68]
call fcn.00403800
push 0x531b0c
call fcn.00404230
mov byte [ebp - 4], 5
mov ecx, 0x531b1c
call fcn.00405520
test al, al
jne 0x40b114
mov ecx, 0x531b1c
call fcn.00402870
lea edx, [ebp - 0xc84]
cmp edx, eax
je 0x40b1d7
call fcn.00402870
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40b10b
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x40b1cc
push 0x20c
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x105
call esi
dec eax
cmp eax, 0x103
ja 0x40b1d7
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x22a], ax
lea eax, [ebp - 0xc64]
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0xc64]
push 0x208
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40b1b5
test eax, eax
je 0x40b1b5
add eax, eax
cmp eax, 0x412
jae 0x40b2ad
xor ecx, ecx
mov word [ebp + eax - 0xc64], cx
lea eax, [ebp - 0xc64]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0xc64]
jmp 0x40b1cb
lea eax, [ebp - 0x434]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0xc84]
call fcn.004028e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc68]
call fcn.00404260
mov ecx, dword [ebx]
lea eax, [ebp - 0xc84]
push eax
add ecx, 0xe4
call fcn.00403c70
push dword [ebp - 0xc88]
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0xce8]
push eax
call fcn.0046cfd0
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc84]
push eax
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xce8]
call fcn.004027f0
push str..NewVersion.data
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0xc84]
push eax
push str..NewVersion.data
call fcn.00403ce0
mov ecx, dword [ebx]
lea eax, [ebp - 0xc84]
push 1
push eax
add ecx, 0xb0
call fcn.00470120
mov ecx, dword [ebx]
mov byte [ecx], al
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x40b27d
mov byte [eax + 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc84]
call fcn.004027f0
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.004b9059
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b96d6
int3