Function at 0x1007b9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101050bf
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10145fb4]
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 0x1007b9f0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x14]
call fcn.1000b050
mov eax, dword [ebp + 0x14]
lea esi, [edi + 0x2c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1007ba20
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [edi + 0x44], 0
jne 0x1007babb
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
jb 0x1007ba45
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0x3c
call fcn.100a8b30
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1007ba83
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.1007a0b0
jmp 0x1007ba85
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 0x1007bab8
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1007bab8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x1007bab8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1007bacd
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.10007a20
push 3
push 0x10117f68
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.10018620
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 0x1007bb2a
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1007bb38
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.10079ea0
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 0x1007bb89
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1007bb89
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1007bb89
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x1007bbb2
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1007bbb2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x1007bbb2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [edi + 0x6c], 0
je 0x1007bbf6
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 0x1007bbe1
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.1007b850
cmp dword [edi + 0x44], 0
je 0x1007bc34
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x1007bc34
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1007bc34
push str._______log_start
lea ecx, [ebp - 0x54]
call fcn.10007ab0
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.100087f0
test esi, esi
je 0x1007bc3f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1007bc75
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007bc6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007bc93
push edx
push ecx
call fcn.100b21ce
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.100b254d
mov esp, ebp
pop ebp
ret 0x14
call fcn.100d129a
int3