Function at 0x407930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429531
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x434250]
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 0x4079b3
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0x42b84c
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 0x4079c0
sub eax, edx
test eax, eax
jle 0x4079e1
lea ecx, [ecx]
cmp byte [esp + eax + 0x18], 0x5c
je 0x4079e1
mov byte [esp + eax + 0x18], 0
dec eax
test eax, eax
jg 0x4079d0
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x18]
lea esi, [eax + 1]
jmp 0x4079f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4079f0
sub eax, esi
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00405d40
mov eax, dword [0x435644]
mov ecx, 0x435644
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 [0x435644]
mov ecx, 0x435644
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 0x407a78
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x18]
call fcn.00405d40
push str.wnos.trace
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004061c0
add esp, 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x23c], 2
je 0x407b08
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x407af6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x407af6
push eax
call fcn.00405b40
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x407aed
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [esp + 0xc], esi
jmp 0x407b08
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00405d40
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 0x407b2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi - 4], 1
jle 0x407b45
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00401590
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 0x407b76
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 0x407b9b
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.0041d05e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret