Function at 0x441390
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561c0f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x5b03a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
cmp word [0x5c2540], 0
jne 0x4413f8
push 0x104
push 0x5c2540
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c2540
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x5c2540
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441414
sub ecx, edx
sar ecx, 1
push ecx
push 0x5c2540
lea ecx, [ebp - 0x40]
call fcn.00421a70
mov dword [ebp - 4], 1
call fcn.0041ae50
mov ecx, eax
test ecx, ecx
je 0x441775
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5c7988]
cmp eax, dword [ecx + 4]
jle 0x441496
push 0x5c7988
call fcn.004dec96
add esp, 4
cmp dword [0x5c7988], 0xffffffff
jne 0x441496
push 0x5c7988
mov dword [0x5c79ac], 0
call fcn.004dec4c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x41], 0
movlpd qword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
call fcn.0045e7a5
add esp, 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x41]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x442450
push 0x5c79ac
call fcn.0045e970
add esp, 0xc
test eax, eax
je 0x441758
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
call fcn.0045e7df
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0x5c31a0
push eax
lea eax, [ebp - 0x20]
push str._s_s
push eax
call fcn.0042e8d0
add esp, 0x10
mov byte [ebp - 4], 8
call fcn.0041ae50
mov ecx, eax
test ecx, ecx
je 0x44177f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x24]
mov esi, dword [ebp - 0x20]
push esi
push str._s.on
push eax
call fcn.0042e8d0
mov edi, dword [ebp - 0x24]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x441564
mov ecx, dword [ebp - 0x4c]
mov byte [ecx + 4], al
jmp 0x4416cd
mov eax, dword [ebp - 0x4c]
push 0x28
mov byte [eax + 4], 1
call fcn.004df038
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
mov dword [eax], vtable.Utils::LogAppender.0
mov edx, esi
mov dword [eax + 4], 0
mov byte [eax + 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 - 0x48], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4415b0
sub edx, dword [ebp - 0x48]
sar edx, 1
push edx
push esi
call fcn.00421a70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 9
mov dword [eax + 0x24], 0xffffffff
mov dword [ecx + 0x20], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004417b0
push 0x3c
push str._____________________log_start_____________________________r_n
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0043d250
mov dword [ebp - 0x54], 0
xor ecx, ecx
mov dword [ebp - 0x50], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x18]
push eax
call dword [ebp - 0x48]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x44167b
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441671
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441789
push edx
push ecx
call fcn.004df007
add esp, 8
xor eax, eax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp edx, 8
jb 0x4416cd
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4416c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44178e
push edx
push ecx
call fcn.004df007
add esp, 8
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0xf
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4416eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x10
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x441704
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44173a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441730
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441793
push edx
push ecx
call fcn.004df007
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004deaec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
call fcn.0045e800
add esp, 4
mov byte [ebp - 4], 4
test al, al
jne 0x441798
call fcn.0045e988
push 0x80004005
call fcn.0041ad20
push 0x80004005
call fcn.0041ad20
call fcn.0052b370
call fcn.0052b370
call fcn.0052b370
sub esp, 8
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.0041b160
call fcn.0041b220
int3