Function at 0x4083e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c661
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x437250]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [esp + 0x22c], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x1c]
push eax
push str.updater.exe
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call edi
mov al, byte [esp + 0x18]
test al, al
jne 0x408463
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0x42e918
call esi
push eax
call edi
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408470
sub eax, edx
test eax, eax
jle 0x408491
lea ecx, [ecx]
cmp byte [esp + eax + 0x18], 0x5c
je 0x408491
mov byte [esp + eax + 0x18], 0
dec eax
test eax, eax
jg 0x408480
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x18]
lea esi, [eax + 1]
jmp 0x4084a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4084a0
sub eax, esi
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00401890
mov eax, dword [0x438664]
mov ecx, 0x438664
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov byte [esp + 0x120], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
stosw word es:[edi], ax
push ecx
push 0x104
mov dword [esp + 0x244], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x438664]
mov ecx, 0x438664
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x120]
mov byte [esp + 0x23c], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408528
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x18]
call fcn.00401890
push str.wnos.trace
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004019e0
add esp, 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x23c], 2
je 0x4085b8
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x4085a6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4085a6
push eax
call fcn.00401360
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40859d
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [esp + 0xc], esi
jmp 0x4085b8
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00401890
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi - 4], 1
jle 0x4085f5
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00401430
mov esi, dword [esp + 0xc]
push 0
push esi
call fcn.00401220
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40864b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
call fcn.0042001e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret