Function at 0x10024a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083f0f
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x100ac1c4]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100503b0
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ad9c4]
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.10059cb9
mov ecx, dword [0x100ad984]
add esp, 0x14
test ecx, ecx
jne 0x10024b80
push 0x100ab004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100ad984], 0
jne 0x10024b6f
push 4
call fcn.1004771c
mov esi, eax
add esp, 4
mov dword [ebp - 0x460], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10024b55
mov ecx, esi
call fcn.10039220
mov byte [ebp - 4], 0
jmp 0x10024b57
xor esi, esi
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
lea eax, [ebp - 0x460]
lock or dword [eax], ecx
mov dword [0x100ad984], esi
push 0x100ab004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100ad984]
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.1003a650
mov esi, eax
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x10024b9f
mov esi, dword [esi]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10024e98
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x454], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x454]
push esi
call fcn.100079e0
test al, al
jne 0x10024bfc
test esi, esi
jne 0x10024bd8
xor ecx, ecx
jmp 0x10024bef
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024be0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x454]
call fcn.1000ffb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x438]
call fcn.10005880
mov edx, dword [ebp - 0x454]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x10024c3b
push 0x104
lea ecx, [ebp - 0x454]
call fcn.1000f930
mov edx, dword [ebp - 0x454]
cmp dword [edx - 8], 0x104
jl 0x10024ea2
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x454]
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x454]
push dword [eax - 8]
push eax
call fcn.100576ba
mov edx, eax
add esp, 8
test edx, edx
js 0x10024ea2
mov ecx, dword [ebp - 0x454]
cmp edx, dword [ecx - 8]
jg 0x10024ea2
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x454]
mov word [eax + edx*2], cx
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10024eac
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x454]
lea eax, [ebp - 0x458]
push str._sLog_s.log
push eax
call fcn.10007e90
add esp, 0x10
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10024eb6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x45c]
push dword [ebp - 0x458]
push str._s.on
push eax
call fcn.10007e90
add esp, 0xc
push dword [ebp - 0x45c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10024d34
mov byte [edi + 4], al
jmp 0x10024e15
push 0x28
mov byte [edi + 4], 1
call fcn.1004771c
mov esi, eax
add esp, 4
mov dword [ebp - 0x464], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x10024dbb
mov ebx, dword [ebp - 0x458]
lea ecx, [esi + 0xc]
mov dword [esi], vtable.Utils::LogAppender.0
mov edx, ebx
mov dword [esi + 4], 0
xor eax, eax
mov byte [esi + 8], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp - 0x460], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10024d90
sub edx, dword [ebp - 0x460]
sar edx, 1
push edx
push ebx
call fcn.10011da0
mov byte [ebp - 4], 0xb
mov dword [esi + 0x24], 0xffffffff
mov byte [ebp - 4], 0xa
jmp 0x10024dbd
xor esi, esi
mov byte [ebp - 4], 9
lea eax, [ebp - 0x450]
push eax
mov ecx, edi
mov dword [edi + 0x20], esi
call fcn.10024940
mov byte [ebp - 4], 0xd
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.10023fe0
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 0x20]
push eax
mov edx, dword [ecx]
call dword [edx]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x438]
call fcn.10005880
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x450]
call fcn.10005880
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x45c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10024e39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x458]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10024e5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x454]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10024e7c
mov ecx, dword [edx]
push edx
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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100079c0
push 0x80070057
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
int3