Function at 0x41c790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x516240]
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.00485d90
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00485d90
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.004b426b
mov ecx, dword [0x5189ac]
add esp, 0x14
test ecx, ecx
jne 0x41c88e
push 0x5150f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5189ac], 0
jne 0x41c87d
push 8
call fcn.0044ee7a
mov esi, eax
add esp, 4
mov dword [ebp - 0x470], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x41c863
mov ecx, esi
call fcn.0044de60
jmp 0x41c865
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x470]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x5189ac], esi
push 0x5150f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5189ac]
mov eax, dword [ecx]
lea edx, [ebp - 0x438]
push 0
push edx
call dword [eax + 0x30]
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 1
jb 0x41c8ad
mov esi, dword [esi]
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x41cb38
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 0x41c8eb
test esi, 0xffff0000
jne 0x41c8eb
movzx eax, si
lea ecx, [ebp - 0x46c]
push eax
call fcn.0040dc00
jmp 0x41c8f7
push esi
lea ecx, [ebp - 0x46c]
call fcn.0041c3b0
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x41c93b
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c931
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb42
push edx
push ecx
call fcn.0044eeaa
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x41cb47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x46c]
lea eax, [ebp - 0x474]
push str._sLog_s.log
push eax
call fcn.0040d150
add esp, 0x10
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x41cb51
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x478], eax
mov esi, dword [ebp - 0x474]
lea eax, [ebp - 0x478]
push esi
push str._s.on
push eax
mov byte [ebp - 4], 6
call fcn.0040d150
mov edi, dword [ebp - 0x478]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c9ef
mov byte [ebx + 4], al
jmp 0x41cac1
push 0x28
mov byte [ebx + 4], 1
call fcn.0044ee7a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x480], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x41ca63
lea ecx, [ebx + 0xc]
mov dword [ebx], vtable.Utils::LogAppender.0
mov dword [ebx + 4], 0
mov edx, esi
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 - 0x470], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41ca40
sub edx, dword [ebp - 0x470]
sar edx, 1
push edx
push esi
call fcn.00418840
mov dword [ebx + 0x24], 0xffffffff
jmp 0x41ca65
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.0041c690
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 8
push eax
call fcn.0041bce0
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.00403c40
lea ecx, [ebp - 0x468]
call fcn.00403c40
lea edx, [edi - 0x10]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41cadf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41cafa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41cb1c
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.0044f2ba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b20
call fcn.0048ff06
push 0x80004005
call fcn.00404b20
push 0x80004005
call fcn.00404b20
int3