Function at 0x405730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460eaf
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [0x47b7e0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x47b8c8], edx
mov edx, dword [0x478034]
mov dword [0x47b8c4], ecx
mov dword [0x47b904], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
mov dword [0x47b8cc], edi
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
call eax
add eax, 0x10
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
mov esi, dword [0x47b830]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x405828
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40581a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40581a
call fcn.004218e0
mov dword [ebp - 0x84], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x405809
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x10
mov dword [0x47b830], ecx
jmp 0x405828
mov ebx, dword [ecx - 0xc]
push ecx
push 0x47b830
call fcn.00401330
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
push edx
push edi
push eax
call fcn.00419a10
test al, al
jne 0x4058f6
mov ecx, dword [0x47b8a0]
mov eax, dword [ecx - 0xc]
lea ebx, [eax + eax]
lea edi, [ebx + 2]
push edi
call fcn.00446021
mov esi, eax
add esp, 4
test esi, esi
je 0x405895
push edi
push 0
push esi
call fcn.00449910
mov eax, dword [0x47b8a0]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x405889
mov edx, dword [eax - 0xc]
push edx
push 0x47b8a0
call fcn.004011f0
mov eax, dword [0x47b8a0]
push ebx
push eax
push ebx
push esi
call fcn.004454a7
add esp, 0x10
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4058b0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00429690
mov byte [ebp - 4], 3
mov edi, dword [0x47b8a4]
lea ebx, [ebp - 0x2c]
lea esi, [ebp - 0x80]
call fcn.0041ee70
push 0x470880
mov ecx, esi
push ecx
mov dword [ebp - 0x80], vtable.windows_error.0
mov dword [ebp - 0x38], edi
call fcn.00449840
mov edx, dword [0x47b830]
cmp dword [edx - 0xc], 0
jne 0x405971
mov esi, 0x47b830
lea ecx, [ebp - 0x88]
call fcn.00419890
mov eax, dword [0x47b764]
add eax, 0xfffffff0
call fcn.004218e0
add eax, 0x10
mov dword [ebp - 0x84], eax
push 2
push 0x467fb8
lea ebx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.00420540
mov esi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
mov edx, esi
call fcn.00418f30
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x47b848]
cmp dword [ecx - 0xc], 0
jne 0x40598e
push 0x47b848
lea edx, [ebp - 0x88]
push edx
call fcn.00419bf0
mov eax, 0x47b764
mov edi, 0x47b840
call fcn.0041db20
push 0xc
push str..updater.exe
mov ebx, edi
call fcn.00420540
mov eax, dword [0x47b83c]
mov eax, dword [eax - 0xc]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405a6d
push 0x47b83c
lea ecx, [ebp - 0x88]
push ecx
call fcn.00419d60
mov eax, dword [0x47b840]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x94], esp
mov esi, esp
call fcn.004218e0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov eax, dword [0x47b83c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x90], esp
mov esi, esp
call fcn.004218e0
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.004196c0
mov edi, 0x47b844
mov byte [ebp - 4], 6
call fcn.0041db20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x47b83c]
push ecx
call ebx
test eax, eax
je 0x405a6d
mov edx, dword [0x47b83c]
push edx
mov ecx, 0x47b7a0
call fcn.00418ce0
mov eax, dword [0x47b830]
push eax
call ebx
test eax, eax
jne 0x405b13
mov eax, dword [0x47b830]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x90], esp
mov esi, esp
call fcn.004218e0
add eax, 0x10
mov ecx, 0x47b7a0
mov dword [esi], eax
call fcn.00418a50
test al, al
jne 0x405b13
mov eax, 0x47b7a0
call fcn.004189f0
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ebx, 7
mov ecx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x405ad0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00429690
mov byte [ebp - 4], bl
mov edi, dword [0x47b8a4]
lea ebx, [ebp - 0x2c]
lea esi, [ebp - 0x80]
call fcn.0041ee70
push 0x470880
mov edx, esi
push edx
mov dword [ebp - 0x80], vtable.windows_error.0
mov dword [ebp - 0x38], edi
call fcn.00449840
mov al, 1
mov byte [0x47b8a8], al
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445447
mov esp, ebp
pop ebp
ret 0x10