Function at 0x1021ffb0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x440
mov esi, ecx
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [esp + 0x438], eax
mov dword [ecx], 0x103511e4
lea eax, [ecx + 8]
mov dword [esp + 4], eax
add ecx, 0xc
lea edi, [esp + 0x38]
mov dword [esp + 8], ecx
push edi
call fcn.10087640
movzx ebx, byte [esp + 0x43]
test bl, bl
jns 0x10220006
mov ebx, dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.102f3c66
add esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, dword [esp + 4]
push edi
call fcn.101c704a
mov ecx, edi
push 0x103c9ce0
call fcn.101d9f18
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 0xa
call esi
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.101c8f62
movsx eax, bl
mov esi, dword [esp + 4]
mov ecx, esi
push eax
call fcn.10086f00
mov ecx, esi
call fcn.10085f50
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
lea esi, [esp + 0x10]
mov ecx, dword [esp + 8]
push esi
call fcn.10087640
movzx ecx, byte [esp + 0x1b]
mov edi, ecx
test cl, cl
jns 0x10220094
mov edi, dword [esp + 0x14]
mov ebx, dword [esp]
mov eax, dword [ebx + 0x90]
cmp edi, eax
jb 0x102206a4
mov edx, edi
test cl, cl
jns 0x102200af
mov esi, dword [esp + 0x10]
add esi, eax
sub edx, eax
je 0x102200bd
test esi, esi
je 0x10220568
cmp edx, 0x7ffffff0
jae 0x102205f0
cmp edx, 0xa
ja 0x102200dc
mov byte [esp + 0x2f], dl
lea edi, [esp + 0x24]
cmp edi, esi
jbe 0x1022010a
jmp 0x10220115
mov ebx, edx
or ebx, 0xf
inc ebx
push ebx
mov edi, edx
call fcn.102f3c36
mov edx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x24], eax
or ebx, 0x80000000
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp]
mov dword [esp + 0x28], edx
cmp edi, esi
ja 0x10220115
lea eax, [edi + edx]
cmp eax, esi
ja 0x10220586
push edx
push esi
push edi
mov esi, edx
call fcn.102f7800
add esp, 0xc
mov byte [edi + esi], 0
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
test byte [0x103c4e40], 0x19
jne 0x102205a4
cmp byte [esp + 0x2f], 0
mov edi, dword [esp + 8]
jns 0x1022015e
push dword [esp + 0x24]
call fcn.102f3c66
add esp, 4
cmp dword [ebx + 4], 3
jne 0x1022024b
cmp byte [0x103cdf54], 0
jne 0x1022024b
mov byte [0x103cdf54], 1
mov eax, dword [0x103cdf5c]
mov ecx, dword [0x103c75a0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x102205f5
mov ecx, edi
lea edi, [esp + 0x38]
push edi
call fcn.10087640
cmp byte [esp + 0x43], 0
jns 0x102201b4
mov edi, dword [esp + 0x38]
add edi, dword [ebx + 0x90]
mov esi, dword [ebx + 0x94]
mov ebx, dword [ebx + 0x98]
test esi, esi
je 0x102201df
push 0x5c
push esi
call fcn.102f8010
add esp, 8
lea ecx, [eax + 1]
test eax, eax
cmove ecx, esi
jmp 0x102201e1
xor ecx, ecx
lea esi, [esp + 0x24]
push edi
push ebx
push ecx
push str._s:_d:__s
push esi
call fcn.1020d8c0
add esp, 0x14
cmp byte [esp + 0x43], 0
jns 0x10220209
push dword [esp + 0x38]
call fcn.102f3c66
add esp, 4
movzx eax, byte [esp + 0x2f]
test al, al
mov ebx, dword [esp]
mov edi, dword [esp + 8]
jns 0x10220221
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push esi
push dword [0x103cdf58]
call fcn.101fd9d0
add esp, 0xc
cmp byte [esp + 0x2f], 0
jns 0x10220244
push dword [esp + 0x24]
call fcn.102f3c66
add esp, 4
mov byte [0x103cdf54], 0
mov ecx, dword [0x103cdf2c]
test ecx, ecx
je 0x1022029b
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x90]
mov eax, dword [esp]
mov ebx, dword [eax + 0x98]
mov eax, dword [esp]
mov esi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x10]
push eax
push edi
mov edi, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
call ecx
add esp, 0x14
test al, al
jne 0x102204f6
mov eax, dword [0x103c5b84]
test al, 2
je 0x102202c1
cmp byte [esp + 0x1b], 0
jns 0x102202b1
mov eax, dword [esp + 0x10]
jmp 0x102202b5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x103c5b84]
test al, 4
jne 0x102202d0
cmp dword [ebx + 4], 2
jl 0x10220316
cmp eax, 1
ja 0x10220316
movzx ebx, byte [esp + 0x1b]
test bl, bl
cmovs ebx, dword [esp + 0x14]
lea esi, [esp + 0x10]
cmovs esi, dword [esp + 0x10]
test ebx, ebx
je 0x10220316
xor edi, edi
nop dword [eax + eax]
mov eax, ebx
sub eax, edi
lea ecx, [esi + edi]
push eax
push ecx
push 2
call fcn.1030bd65
add esp, 0xc
test eax, eax
js 0x1022030d
add edi, eax
cmp edi, ebx
jb 0x102202f0
mov eax, dword [0x103c5b84]
mov edi, dword [esp + 8]
test al, 1
je 0x10220355
call fcn.1021f870
test al, al
je 0x10220355
mov dword [esp + 0x38], 0xffffffff
movzx eax, byte [esp + 0x1b]
test al, al
cmovs eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
cmovs ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push dword [0x103cdf38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp]
cmp dword [ebx + 4], 3
jne 0x102204f6
push 0x400
push 0xff
lea eax, [esp + 0x40]
push eax
call fcn.102f7d80
add esp, 0xc
cmp byte [esp + 0x1b], 0
jns 0x10220386
mov eax, dword [esp + 0x10]
jmp 0x1022038a
lea eax, [esp + 0x10]
push 0x400
push eax
lea esi, [esp + 0x40]
push esi
call fcn.1020edd0
add esp, 0xc
push esi
call sym.EmbeddedBrowserWebView.dll_public_virtual:_void___thiscall_telemetry_client::IDataFieldVisitor::destructor_void_
add esp, 4
mov eax, dword [0x103cdf50]
mov ecx, dword [0x103c75a0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10220638
mov eax, dword [0x103cdf48]
cmp eax, dword [0x103cdf4c]
je 0x102206a7
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [0x103cdf50]
mov ecx, dword [0x103c75a0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1022066e
mov eax, dword [0x103cdf4c]
test eax, eax
mov ecx, dword [0x103cdf44]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x102206aa
shl eax, 2
add eax, dword [0x103cdf40]
lea ecx, [esp + 0x20]
push eax
call fcn.10223190
mov eax, dword [esp + 0x20]
test eax, eax
je 0x102204ed
cmp byte [esp + 0x1b], 0
jns 0x10220446
mov ebx, dword [esp + 0x10]
jmp 0x1022044a
lea ebx, [esp + 0x10]
mov edi, ebx
add edi, dword [esp + 0xc]
mov dword [esp + 4], eax
je 0x10220461
push edi
call fcn.1030f980
add esp, 4
jmp 0x10220463
xor eax, eax
mov edx, dword [esp]
mov ecx, dword [edx + 0x90]
mov esi, dword [esp + 0xc]
sub esi, ecx
add ebx, ecx
mov ecx, dword [edx + 0x94]
mov edx, dword [edx + 0x98]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov eax, 1
mov esi, dword [esp + 4]
lock xadd dword [esi], eax
test eax, eax
jle 0x102206ad
mov dword [esp + 0xc], ecx
cmp eax, 0x7fffffff
mov edi, dword [esp + 8]
je 0x102206b0
mov ebx, edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
call dword [section..00cfg]
lea eax, [esp + 0x30]
lea edx, [esp + 0x24]
push eax
push edx
push ebx
push dword [esp + 0x18]
push esi
call ecx
add esp, 0x14
lock dec dword [esi]
mov ebx, dword [esp]
jne 0x102204ed
push esi
call fcn.102230b0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.10223210
cmp byte [esp + 0x1b], 0
jns 0x10220509
push dword [esp + 0x10]
call fcn.102f3c66
add esp, 4
lea ecx, [ebx + 0x9c]
call fcn.10278e90
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 8], 0x10352058
mov dword [ebx + 0xc], 0x10352070
cmp byte [ebx + 0x37], 0
jns 0x1022053a
push dword [ebx + 0x2c]
call fcn.102f3c66
add esp, 4
add ebx, 0x40
mov ecx, edi
call fcn.10085c0a
mov ecx, edi
call sym.EmbeddedBrowserWebView.dll_public_virtual:_void___thiscall_telemetry_client::IDataFieldVisitor::destructor_void_
mov ecx, ebx
call fcn.10085c00
mov ecx, dword [esp + 0x438]
xor ecx, ebp
call fcn.102f4c53
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.basic_string_const_char__n__detected_nullptr
push str.__n__0____s___nullptr
push 0x37f
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.10090eb0
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xee
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.10090eb0
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
sub esp, 8
movsd xmm0, qword [esp + 0x38]
movsd qword [esp], xmm0
lea edx, [esp + 0x40]
mov ecx, str.LogMessage
call fcn.10220a70
add esp, 8
jmp 0x10220147
call fcn.10308bbb
push 0x103cdf5c
call fcn.102f3cd7
add esp, 4
cmp dword [0x103cdf5c], 0xffffffff
jne 0x1022019d
push 0x400
push str.LOG_FATAL
call fcn.101fd990
add esp, 8
mov dword [0x103cdf58], eax
push 0x103cdf5c
call fcn.102f3d4d
add esp, 4
jmp 0x1022019d
push 0x103cdf50
call fcn.102f3cd7
add esp, 4
cmp dword [0x103cdf50], 0xffffffff
jne 0x102203c7
xorps xmm0, xmm0
movups xmmword [0x103cdf40], xmm0
push 0x103cdf50
call fcn.102f3d4d
add esp, 4
jmp 0x102203c7
push 0x103cdf50
call fcn.102f3cd7
add esp, 4
cmp dword [0x103cdf50], 0xffffffff
jne 0x10220401
xorps xmm0, xmm0
movups xmmword [0x103cdf40], xmm0
push 0x103cdf50
call fcn.102f3d4d
add esp, 4
jmp 0x10220401
int3
int3
int3
int3
int3