Function at 0x4247b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea551
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x526260]
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 ebx, ecx
mov dword [ebp - 0x47c], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00491dd0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00491dd0
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c49d5
mov ecx, dword [0x528d48]
add esp, 0x14
test ecx, ecx
jne 0x4248ae
push 0x52508c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x528d48], 0
jne 0x42489d
push 8
call fcn.004571ac
mov esi, eax
add esp, 4
mov dword [ebp - 0x474], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x424883
mov ecx, esi
call fcn.00455d20
jmp 0x424885
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x474]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x528d48], esi
push 0x52508c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
lea edx, [ebp - 0x438]
push 0
push edx
call dword [eax + 0x34]
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4248cd
mov esi, dword [esi]
call fcn.00403090
mov ecx, eax
test ecx, ecx
je 0x424bcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x42490b
test esi, 0xffff0000
jne 0x42490b
movzx eax, si
lea ecx, [ebp - 0x46c]
push eax
call fcn.00403cc0
jmp 0x424917
push esi
lea ecx, [ebp - 0x46c]
call fcn.004243e0
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x42495b
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424bd5
push edx
push ecx
call fcn.00456d4c
add esp, 8
mov esi, dword [ebp - 0x46c]
xor eax, eax
mov word [ebp - 0x438], ax
mov ecx, 1
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4249a8
push 0x104
lea ecx, [ebp - 0x46c]
call fcn.00403e70
mov esi, dword [ebp - 0x46c]
cmp dword [esi - 8], 0x104
jl 0x424bda
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.0049f702
add esp, 8
test eax, eax
js 0x424bda
cmp eax, dword [esi - 8]
jg 0x424bda
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00403090
mov ecx, eax
test ecx, ecx
je 0x424be4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 5
push eax
push esi
lea eax, [ebp - 0x478]
push str._sLog_s.log
push eax
call fcn.00402f90
add esp, 0x10
call fcn.00403090
mov ecx, eax
test ecx, ecx
je 0x424bee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x470], eax
mov edi, dword [ebp - 0x478]
lea eax, [ebp - 0x470]
push edi
push str._s.on
push eax
mov byte [ebp - 4], 6
call fcn.00402f90
add esp, 0xc
push dword [ebp - 0x470]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424a83
mov byte [ebx + 4], al
jmp 0x424b54
push 0x28
mov byte [ebx + 4], 1
call fcn.004571ac
mov ebx, eax
add esp, 4
mov dword [ebp - 0x480], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x424af6
lea ecx, [ebx + 0xc]
mov dword [ebx], vtable.Utils::LogAppender.0
mov dword [ebx + 4], 0
mov edx, edi
mov byte [ebx + 8], 1
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp - 0x474], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x424ad3
sub edx, dword [ebp - 0x474]
sar edx, 1
push edx
push edi
call fcn.004206d0
mov dword [ebx + 0x24], 0xffffffff
jmp 0x424af8
xor ebx, ebx
mov eax, dword [ebp - 0x47c]
lea ecx, [ebp - 0x468]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
mov dword [eax + 0x20], ebx
call fcn.004246b0
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 8
push eax
call fcn.00423d20
add esp, 0xc
mov ecx, dword [ebp - 0x47c]
push eax
mov byte [ebp - 4], 9
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx]
call dword [edx]
lea ecx, [ebp - 0x450]
call fcn.00405720
lea ecx, [ebp - 0x468]
call fcn.00405720
mov edx, dword [ebp - 0x470]
or ebx, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424b78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x424b93
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x424baf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0045716c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402dd0
call fcn.0049c336
push 0x80070057
call fcn.00402dd0
push 0x80004005
call fcn.00402dd0
push 0x80004005
call fcn.00402dd0
int3