Function at 0x1008be90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fbff
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10150440]
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 ecx, dword [ebp + 8]
mov edx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1008bed0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x14]
call fcn.1000aa60
mov eax, dword [ebp + 0x14]
lea esi, [edi + 0x2c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1008bf00
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [edi + 0x44], 0
jne 0x1008bf9b
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
jb 0x1008bf25
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0x3c
call fcn.10073ab7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1008bf63
mov dword [ebx + 4], 1
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj_class_LogUtils::LogAppender_.0
push dword [edi + 0xc]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.10089d30
jmp 0x1008bf65
xor ebx, ebx
lea eax, [ebx + 0xc]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [edi + 0x48], ebx
mov ebx, eax
test ebx, ebx
je 0x1008bf98
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1008bf98
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x1008bf98
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1008bfad
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov dword [edi + 0x10], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
lea eax, [eax*2 + 1]
mov dword [edi + 4], eax
lea eax, [edi + 0x14]
push eax
call fcn.100228c0
push 3
push 0x10125460
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.10013df0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008c00a
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1008c018
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.100897c0
add esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x70]
mov dword [ebp - 0x2c], ecx
mov dword [edi + 0x70], edx
test ecx, ecx
je 0x1008c069
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1008c069
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1008c069
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x1008c092
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1008c092
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x1008c092
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [edi + 0x6c], 0
je 0x1008c0d6
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x1008c0c1
lock inc dword [eax + 4]
mov eax, dword [edi + 0x44]
mov dword [ecx], eax
mov eax, dword [edi + 0x48]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x6c]
push 0
call fcn.1008bd30
cmp dword [edi + 0x44], 0
je 0x1008c114
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x1008c114
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1008c114
push str._______log_start
lea ecx, [ebp - 0x54]
call fcn.10089ce0
mov ecx, dword [edi + 0x44]
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x54]
call fcn.10009330
test esi, esi
je 0x1008c11f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1008c155
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008c14b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008c173
push edx
push ecx
call fcn.1007364e
add esp, 8
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.10073638
mov esp, ebp
pop ebp
ret 0x14
call fcn.100a9eb3
int3