Function at 0x1002d890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008757f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100ad708]
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 0x1002d8d0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x14]
call fcn.100042a0
mov eax, dword [ebp + 0x14]
lea esi, [edi + 0x2c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1002d900
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [edi + 0x44], 0
jne 0x1002d99b
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
jb 0x1002d925
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0x3c
call fcn.1002f272
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1002d963
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.1002bd40
jmp 0x1002d965
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 0x1002d998
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1002d998
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x1002d998
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1002d9ad
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.10005d30
push 3
push 0x10092308
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.1000f400
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 0x1002da0a
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1002da18
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.1002ba70
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 0x1002da69
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1002da69
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1002da69
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x1002da92
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1002da92
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x1002da92
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [edi + 0x6c], 0
je 0x1002dad6
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 0x1002dac1
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.1002d730
cmp dword [edi + 0x44], 0
je 0x1002db14
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x1002db14
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1002db14
push str._______log_start
lea ecx, [ebp - 0x54]
call fcn.10005f20
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.10003900
test esi, esi
je 0x1002db1f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1002db55
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002db4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002db73
push edx
push ecx
call fcn.1002eba8
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.1002ef19
mov esp, ebp
pop ebp
ret 0x14
call fcn.1005e18e
int3