Function at 0x100e2200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019518d
mov eax, dword fs:[0]
push eax
sub esp, 0xce0
mov eax, dword [0x101e40b0]
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 - 0xc88], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc68], eax
cmp dword [eax + 0x10], 0
je 0x100e27bd
cmp dword [esi + 0x40], 0
je 0x100e27bd
cmp dword [esi + 0x10], 0
je 0x100e27bd
cmp dword [esi + 0x28], 0
je 0x100e27bd
cmp dword [esi + 0x58], 0
je 0x100e27bd
cmp dword [esi + 0x70], 0
je 0x100e27bd
lea ebx, [esi + 0x48]
mov edx, 0x101b0818
mov ecx, ebx
call fcn.1007d2f0
test al, al
je 0x100e22a5
mov edx, 0x101b5380
mov ecx, ebx
call fcn.1007d2f0
test al, al
jne 0x100e27bd
mov edi, dword [edi]
add edi, 4
cmp edi, esi
je 0x100e22c3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100e22b8
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.100056d0
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
cmp ecx, eax
je 0x100e22e0
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x100e22d7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.100056d0
lea edx, [esi + 0x30]
lea ecx, [edi + 0x30]
mov dword [ebp - 0xc8c], edx
cmp ecx, edx
je 0x100e2303
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x100e22fa
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.100056d0
lea ecx, [edi + 0x48]
cmp ecx, ebx
je 0x100e231d
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100e2314
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.100056d0
lea eax, [esi + 0x60]
lea ecx, [edi + 0x60]
cmp ecx, eax
je 0x100e233a
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x100e2331
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.100056d0
lea eax, [esi + 0x78]
lea ecx, [edi + 0x78]
cmp ecx, eax
je 0x100e2357
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x100e234e
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.100056d0
add esi, 0x90
lea ecx, [edi + 0x90]
cmp ecx, esi
je 0x100e2377
push dword [ebp - 0xc8c]
push dword [esi + 4]
push dword [esi]
call fcn.100e27f0
mov eax, dword [ebp - 0xc88]
lea ecx, [ebp - 0xc84]
push dword [ebp - 0xc68]
mov eax, dword [eax]
mov dword [eax + 0xc4], 0
call fcn.10005590
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc84]
call fcn.100317c0
test al, al
jne 0x100e23bb
lea ecx, [ebp - 0xc84]
call fcn.10031d70
lea ecx, [ebp - 0xc84]
call fcn.100317c0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test al, al
jne 0x100e250c
mov eax, dword [0x101e9ab8]
mov dword [ebp - 0xc6c], 0
mov dword [ebp - 0xc6c], 0x101e9ab8
test eax, eax
je 0x100e23fa
push eax
call edi
mov byte [ebp - 4], 1
mov ecx, dword [0x101e4150]
test ecx, ecx
je 0x100e2420
cmp dword [0x101e4154], 8
mov eax, 0x101e4140
cmovae eax, dword [0x101e4140]
jmp 0x100e24e5
push 0x20c
lea eax, [ebp - 0x224]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x100e24f2
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x84c]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x100e24c6
test eax, eax
je 0x100e24c6
add eax, eax
cmp eax, 0x412
jae 0x100e27db
xor ecx, ecx
mov word [ebp + eax - 0x84c], cx
lea ecx, [ebp - 0x84c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e24b3
lea eax, [ebp - 0x84c]
jmp 0x100e24e1
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e24d0
lea eax, [ebp - 0x224]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc84]
call fcn.100056d0
mov byte [ebp - 4], 0
mov eax, dword [0x101e9ab8]
test eax, eax
je 0x100e2502
push eax
call esi
mov dword [ebp - 0xc6c], 0
lea eax, [ebp - 0xc84]
push eax
mov eax, dword [ebp - 0xc88]
mov ecx, dword [eax]
add ecx, 0xcc
call fcn.100054c0
push str.download
lea ecx, [ebp - 0xca4]
call fcn.10005530
mov byte [ebp - 4], 2
lea eax, [ebp - 0xca4]
push eax
lea edx, [ebp - 0xc84]
lea ecx, [ebp - 0xcbc]
call fcn.1003d4f0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc84]
push eax
call fcn.10008a50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcbc]
call fcn.10005660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xca4]
call fcn.10005660
push ebx
lea edx, [ebp - 0xc84]
lea ecx, [ebp - 0xcd4]
call fcn.1003d4f0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc84]
push eax
call fcn.10008a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcd4]
call fcn.10005660
lea ecx, [ebp - 0xc84]
call fcn.100317c0
test al, al
jne 0x100e25d1
lea ecx, [ebp - 0xc84]
call fcn.10031d70
lea ecx, [ebp - 0xc84]
call fcn.100317c0
test al, al
jne 0x100e271c
mov eax, dword [0x101e9ab8]
mov dword [ebp - 0xc68], 0
mov dword [ebp - 0xc68], 0x101e9ab8
test eax, eax
je 0x100e2604
push eax
call edi
mov byte [ebp - 4], 5
mov ecx, dword [0x101e4150]
test ecx, ecx
je 0x100e262a
cmp dword [0x101e4154], 8
mov eax, 0x101e4140
cmovae eax, dword [0x101e4140]
jmp 0x100e26f5
push 0x20c
lea eax, [ebp - 0x434]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x100e2702
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x22a], ax
lea eax, [ebp - 0xc64]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x100e26d3
test eax, eax
je 0x100e26d3
add eax, eax
cmp eax, 0x412
jae 0x100e27db
xor ecx, ecx
mov word [ebp + eax - 0xc64], cx
lea ecx, [ebp - 0xc64]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e26c0
lea eax, [ebp - 0xc64]
jmp 0x100e26f1
lea ecx, [ebp - 0x434]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e26e0
lea eax, [ebp - 0x434]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc84]
call fcn.100056d0
mov byte [ebp - 4], 0
mov eax, dword [0x101e9ab8]
test eax, eax
je 0x100e2712
push eax
call esi
mov dword [ebp - 0xc68], 0
mov ebx, dword [ebp - 0xc88]
lea eax, [ebp - 0xc84]
push eax
mov ecx, dword [ebx]
add ecx, 0xe4
call fcn.100054c0
push dword [ebp - 0xc8c]
lea edx, [ebp - 0xc84]
lea ecx, [ebp - 0xcec]
call fcn.1003d4f0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc84]
push eax
call fcn.10008a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcec]
call fcn.10005660
push 0x10
push str..NewVersion.data
lea ecx, [ebp - 0xc84]
call fcn.10008ba0
mov ecx, dword [ebx]
lea eax, [ebp - 0xc84]
push 1
push eax
add ecx, 0xb0
call fcn.100391c0
mov ecx, dword [ebx]
mov byte [ecx], al
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x100e27ab
mov byte [eax + 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc84]
call fcn.10005660
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.10177d47
mov esp, ebp
pop ebp
ret 0xc
call fcn.10177eda
int3