Function at 0x1001b770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085f51
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
test eax, eax
mov dword [ebp - 0x428], 0
mov edx, 0x1008c524
mov dword [ebp - 0x424], 7
cmovne edx, eax
xor eax, eax
mov ecx, edx
mov word [ebp - 0x438], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b7d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.100042a0
push 0x30
lea eax, [ebp - 0x484]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10059fd0
add esp, 0xc
lea ecx, [ebp - 0x484]
call fcn.1003fcc0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x484]
call fcn.100403d0
push 0xc
xor eax, eax
mov dword [ebp - 0x48c], 0
push str.updatefinish
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x488], 7
mov word [ebp - 0x49c], ax
call fcn.100042a0
lea eax, [ebp - 0x49c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x484]
call fcn.10040330
mov edx, dword [ebp - 0x488]
mov esi, eax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x1001b8b2
mov ecx, dword [ebp - 0x49c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001b8a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bb09
push edx
push ecx
call fcn.1002eba8
add esp, 8
test esi, esi
je 0x1001b8d1
lea ecx, [ebp - 0x484]
call fcn.1003fd20
lea ecx, [ebp - 0x438]
call fcn.10003900
jmp 0x1001baea
mov ecx, dword [0x100b0af8]
test ecx, ecx
jne 0x1001b94c
push 0x100ad4a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b0af8], 0
jne 0x1001b93b
push 0x98
call fcn.1002f272
mov esi, eax
add esp, 4
mov dword [ebp - 0x43c], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1001b925
push 0x98
push 0
push esi
call fcn.10059fd0
add esp, 0xc
mov ecx, esi
call fcn.1001fdc0
jmp 0x1001b927
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x100b0af8], eax
push 0x100ad4a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b0af8]
call fcn.100203c0
test eax, eax
je 0x1001b8b6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10059fd0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
push 0x10000000
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_tempupdate.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001b8b6
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10059fd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call esi
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x420]
push ecx
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x454]
push str._s___path__s_
push eax
call fcn.10043fb0
cmp dword [ebp - 0x440], 8
lea eax, [ebp - 0x454]
push 0
cmovae eax, dword [ebp - 0x454]
push 0
push 0
push 1
push 1
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
call fcn.10043950
mov edx, dword [ebp - 0x440]
add esp, 0x2c
test eax, eax
setne bl
cmp edx, 8
jb 0x1001ba86
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ba7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bb0e
push edx
push ecx
call fcn.1002eba8
add esp, 8
xor eax, eax
mov dword [ebp - 0x444], 0
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
call fcn.1003fd20
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x1001baea
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001bae0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bb13
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret 8
call fcn.1005e18e
call fcn.1005e18e
call fcn.1005e18e
int3