Function at 0x44f060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ea8f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d8a84]
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 0x44f0a0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x14]
call fcn.00413b10
mov eax, dword [ebp + 0x14]
lea esi, [edi + 0x2c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x44f0d0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [edi + 0x44], 0
jne 0x44f16b
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
jb 0x44f0f5
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0x3c
call fcn.004721b2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x44f133
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.0044d590
jmp 0x44f135
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 0x44f168
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x44f168
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x44f168
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x44f17d
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.00408f60
push 3
push 0x5a0350
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.0041bdc0
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 0x44f1da
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x44f1e8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.0044d2c0
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 0x44f239
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x44f239
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x44f239
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x44f262
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x44f262
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x44f262
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [edi + 0x6c], 0
je 0x44f2a6
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 0x44f291
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.0044ef00
cmp dword [edi + 0x44], 0
je 0x44f2e4
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x44f2e4
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x44f2e4
push str._______log_start
lea ecx, [ebp - 0x54]
call fcn.00409150
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.00409e00
test esi, esi
je 0x44f2ef
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44f325
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44f31b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f343
push edx
push ecx
call fcn.004721e2
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.004724a6
mov esp, ebp
pop ebp
ret 0x14
call fcn.00558e1a
int3