Function at 0x10045910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fdd19
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x1014f644]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 0xa4], eax
je 0x10045ac0
xor ecx, ecx
push 0x44
mov eax, str.UPDATE_CEF_BINARYS_FOR_KNIGHT_F755051D_420C_4892_9590_5A4955EB58F0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
call fcn.10006bc0
mov edx, esi
xor esi, esi
mov dword [ebp - 0xb4], vtable.hive::AutoProcessLock.0
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x34], 8
jb 0x100459a8
mov eax, dword [ebp - 0x48]
push eax
call fcn.100719b6
add esp, 4
lea edx, [ebp - 0x48]
push edx
push esi
push 1
xor ecx, ecx
push esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebp - 0x84], esi
test esi, esi
je 0x10045ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10045ac0
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
mov dword [ebp - 0xac], esi
call fcn.10045c60
add esp, 4
push eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.10045d40
add esp, 4
push edi
push eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10045d80
add esp, 8
mov edi, 0x10
cmp dword [ebp - 0x6c], edi
jb 0x10045a32
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100719b6
add esp, 4
mov ebx, 0xf
xor esi, esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], edi
jb 0x10045a58
mov edx, dword [ebp - 0x64]
push edx
call fcn.100719b6
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x1c], esi
je 0x10045a98
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10045a72
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x10045a98
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10045a8d
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x10045ade
cmp dword [ebp - 0x18], edi
jb 0x10045aa9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
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.100719c1
mov esp, ebp
pop ebp
ret
push 0x5c
mov dword [ebp - 0x98], esi
call fcn.10071bdd
add esp, 4
cmp eax, esi
je 0x10045c2b
mov dword [eax], eax
mov dword [ebp - 0x9c], eax
mov dword [eax + 4], eax
mov byte [ebp - 4], 6
push 0x24
mov dword [ebp - 0x8c], esi
call fcn.10071bdd
add esp, 4
cmp eax, esi
je 0x10045bf8
mov dword [eax], eax
mov dword [ebp - 0x90], eax
mov dword [eax + 4], eax
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 7
call fcn.10045dc0
add esp, 0xc
test al, al
je 0x10045bae
mov ecx, dword [ebp - 0xa4]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x2c]
push edx
call fcn.10006dc0
lea eax, [ebp - 0x90]
push eax
call fcn.100084c0
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.100719b6
add esp, 4
lea edx, [ebp - 0x9c]
push edx
call fcn.10046720
mov eax, dword [ebp - 0x9c]
push eax
call fcn.100719b6
add esp, 4
lea esi, [ebp - 0x2c]
call fcn.100317d0
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10045ac2
lea edx, [ebp - 0x90]
push edx
call fcn.100084c0
mov eax, dword [ebp - 0x90]
push eax
call fcn.100719b6
add esp, 4
lea ecx, [ebp - 0x9c]
push ecx
call fcn.10046720
mov edx, dword [ebp - 0x9c]
push edx
call fcn.100719b6
add esp, 4
lea esi, [ebp - 0x2c]
call fcn.100317d0
mov eax, dword [ebp - 0x84]
push eax
jmp 0x10045aba
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xa8], esi
call fcn.10071a69
push 0x10140c60
lea edx, [ebp - 0xc0]
push edx
mov dword [ebp - 0xc0], vtable.std::bad_alloc.0
call fcn.10077e5e
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xa0], esi
call fcn.10071a69
push 0x10140c60
lea ecx, [ebp - 0xcc]
push ecx
mov dword [ebp - 0xcc], vtable.std::bad_alloc.0
call fcn.10077e5e
int3