Function at 0x428190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ac9f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b0364]
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 0x4281d0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [edi + 0x14]
call fcn.004068df
mov eax, dword [ebp + 0x14]
lea esi, [edi + 0x2c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x428200
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [edi + 0x44], 0
jne 0x42829b
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
jb 0x428225
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0x3c
call fcn.0043be36
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x428263
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.00426780
jmp 0x428265
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 0x428298
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x428298
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x428298
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4282ad
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.004225ff
push 3
push 0x494f40
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.0040e8d6
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 0x42830a
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x428318
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.004266f0
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 0x428369
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x428369
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x428369
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x428392
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x428392
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x428392
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [edi + 0x6c], 0
je 0x4283d6
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 0x4283c1
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.00428070
cmp dword [edi + 0x44], 0
je 0x428414
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x428414
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x428414
push str._______log_start
lea ecx, [ebp - 0x54]
call fcn.0040349c
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.00403b1f
test esi, esi
je 0x42841f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x428455
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42844b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428473
push edx
push ecx
call fcn.0043b7c4
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.0043bcea
mov esp, ebp
pop ebp
ret 0x14
call fcn.00461eaa
int3