Function at 0x409170
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x483094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x64], esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x30], ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x2c], edi
mov dword [esi], vtable.g3::TextFileSink.0
mov dword [ebp - 0x54], ecx
call fcn.0040ccc0
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x64], ecx
call fcn.0040ccc0
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], ecx
call fcn.00412c10
mov byte [ebp - 4], 2
lea ecx, [esi + 0x3c]
mov eax, dword [0x487590]
mov edi, 0x487594
mov dword [esi + 0x38], eax
cmp dword [0x4875a8], 0x10
cmovae edi, dword [0x487594]
mov edx, edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea eax, [edx + 1]
mov dword [ebp - 0x34], eax
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x409230
sub edx, dword [ebp - 0x34]
push edx
push edi
call fcn.00403b50
mov al, byte [ebp + 0x14]
mov byte [esi + 0x55], al
lea eax, [esi + 0x58]
push 0xfa0
push eax
mov byte [esi + 0x54], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
push 0x124
mov byte [ebp - 4], 5
call fcn.00428c19
add esp, 4
mov edi, eax
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x34], edi
je 0x4092ed
push 1
mov byte [ebp - 4], 6
lea esi, [edi + 0xc]
push 1
push 0
mov ecx, esi
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_base::log_crypt::LogCrypt_.0
call fcn.00407080
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], 1
mov dword [eax + 0x70], esi
mov ecx, dword [eax + 0x74]
mov dword [ebp - 0x34], ecx
mov dword [eax + 0x74], edi
mov edi, ecx
mov byte [ebp - 4], 7
test edi, edi
je 0x4092eb
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4092eb
mov eax, dword [edi]
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4092eb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x409354
push 0
mov byte [ebp - 4], 9
lea esi, [edi + 0xc]
push 0
push 0
mov ecx, esi
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_base::log_crypt::LogCrypt_.0
call fcn.00407080
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], 2
mov dword [eax + 0x70], esi
mov ecx, dword [eax + 0x74]
mov dword [ebp - 0x34], ecx
mov dword [eax + 0x74], edi
mov edi, ecx
mov byte [ebp - 4], 0xa
test edi, edi
je 0x409354
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x409354
mov eax, dword [edi]
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x409354
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x34], eax
push dword [ebp - 0x2c]
call fcn.0040ccc0
lea ecx, [ebp - 0x50]
call fcn.00407fa0
mov edi, dword [ebp - 0x64]
mov esi, eax
add esp, 0x18
cmp edi, esi
je 0x4093a9
mov ecx, edi
call fcn.0040cc10
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4093e3
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4093d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40981d
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov ecx, edi
call fcn.00407e10
test al, al
je 0x409822
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
mov edx, edi
movzx eax, byte [eax + 0x55]
push eax
push dword [ebp - 0x30]
call fcn.00408460
sub esp, 0x10
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], esp
mov ecx, esp
push eax
call fcn.0040ccc0
mov edi, dword [ebp - 0x54]
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 0xd
push edi
call fcn.0040ccc0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xc
call fcn.004081d0
mov esi, eax
add esp, 0x30
cmp edi, esi
je 0x40946d
mov ecx, edi
call fcn.0040cc10
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4094a7
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40949d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409858
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.00412c10
mov edx, dword [ebp - 0x2c]
mov ecx, edi
or dword [ebp - 0x38], 4
mov dword [ebp - 0x30], eax
call fcn.00408790
mov esi, dword [ebp - 0x60]
mov cl, al
mov eax, dword [ebp - 0x2c]
xor edx, edx
test cl, cl
mov ecx, dword [ebp - 0x30]
cmove eax, edx
mov dword [ebp - 0x2c], eax
cmp esi, ecx
je 0x409500
mov eax, dword [ecx]
mov dword [ecx], edx
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x4094fd
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x409515
mov ecx, dword [eax]
push 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
cmp dword [esi], 0
jne 0x4097b8
push ecx
mov eax, esp
lea ecx, [ebp - 0x50]
mov edx, edi
mov dword [eax], str.Cannot_write_log_file_to_location___
call fcn.00412d00
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40953c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x40957d
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409573
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40985d
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x34]
or eax, 8
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
call fcn.0040c9d0
mov edx, dword [ebp - 0x3c]
mov eax, edx
mov ecx, dword [ebp - 0x40]
sub eax, ecx
cmp eax, 2
jb 0x4095ea
cmp edx, 8
lea esi, [ebp - 0x50]
push 4
cmovae esi, dword [ebp - 0x50]
lea edi, [ecx + 2]
push 0x478ae0
mov dword [ebp - 0x40], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004404e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x54]
jmp 0x409602
push 2
push 0x478ae0
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x30]
push 2
call fcn.00413d30
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x40]
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x54], esi
cmp ecx, eax
ja 0x409655
cmp dword [ebp - 0x3c], 8
lea eax, [esi + ecx]
mov dword [ebp - 0x40], eax
lea esi, [ebp - 0x50]
cmovae esi, dword [ebp - 0x50]
lea eax, [ecx + ecx]
push eax
mov eax, dword [ebp - 0x54]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.004404e0
mov eax, dword [ebp - 0x30]
add esp, 0xc
add eax, dword [ebp - 0x54]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x409667
push ecx
push edx
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00413d30
lea eax, [ebp - 0x50]
cmp edi, eax
je 0x40969d
mov ecx, edi
call fcn.0040cc10
movups xmm0, xmmword [ebp - 0x50]
mov eax, 7
xor ecx, ecx
mov word [ebp - 0x50], cx
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
jmp 0x4096a0
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0xc
cmp eax, 8
jb 0x4096e1
mov ecx, dword [ebp - 0x50]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4096d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409862
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.00412c10
mov edx, dword [ebp - 0x2c]
or esi, 0x10
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esi
call fcn.00408790
mov esi, dword [ebp - 0x60]
mov cl, al
mov eax, dword [ebp - 0x2c]
xor edx, edx
test cl, cl
mov ecx, dword [ebp - 0x30]
cmove eax, edx
mov dword [ebp - 0x2c], eax
cmp esi, ecx
je 0x40973c
mov eax, dword [ecx]
mov dword [ecx], edx
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x409739
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x409751
mov ecx, dword [eax]
push 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
cmp dword [esi], 0
jne 0x4097b8
push ecx
mov eax, esp
lea ecx, [ebp - 0x50]
mov edx, edi
mov dword [eax], str.cannot_open_log_file_at_startup___
call fcn.00412d00
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x409774
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4097b5
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4097ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409867
push edx
push ecx
call fcn.00428ee3
add esp, 8
cmp dword [esi], 0
mov edi, dword [ebp - 0x58]
setne al
mov ecx, edi
mov byte [edi + 0x54], al
call fcn.00409d90
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4097fe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4097f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40986c
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret 0x14
call fcn.004465a2
push ecx
mov ecx, esp
push str.forced_abort_due_to_illegal_log_prefix___
call fcn.0040c860
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
call fcn.00412d00
add esp, 4
mov ecx, eax
call fcn.0040cb10
mov ecx, eax
call fcn.00407070
lea ecx, [ebp - 0x50]
call fcn.0040cc10
call fcn.00446696
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
int3