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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ecx + 0x3c]
test al, 0x10
mov dword [ebp - 0x10], ecx
je 0x40b403
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x40b0f6
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x40b3db
cmp ebx, 0x7ffffff8
jae 0x40b3ea
cmp ebx, 0xa
ja 0x40b359
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x40b12b
cmp edi, esi
ja 0x40b3d4
test ebx, ebx
je 0x40b13a
push ebx
push esi
push eax
call fcn.005822f0
add esp, 0xc
mov eax, dword [ebp - 0x10]
lea esi, [eax + 8]
mov byte [edi], 0
movsx eax, byte [ebp - 0x11]
test eax, eax
jns 0x40b14e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jns 0x40b15e
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov edi, dword [esi + eax + 0x1c]
cmp edi, 0x64ed70
jne 0x40b3f2
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], 0x64f41c
mov eax, dword [0x64f41c]
cmp eax, 0xffffffff
jne 0x40b479
mov eax, dword [0x64f420]
lea edx, [eax - 1]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0xc]
sub esi, ecx
sar esi, 2
cmp esi, edx
jbe 0x40b3cf
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x40b3cf
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x6445dc]
mov ecx, ebx
push 0xa
call esi
mov ebx, eax
cmp edi, 0x64ed70
jne 0x40b453
movsx eax, bl
mov esi, dword [ebp - 0x30]
mov ecx, esi
push eax
call fcn.0040b700
mov ecx, esi
call fcn.0040b5b0
xor eax, eax
dec eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x3c]
test al, 0x10
je 0x40b420
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x40b211
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x40b3db
cmp ebx, 0x7ffffff8
jae 0x40b3fb
cmp ebx, 0xa
ja 0x40b336
lea eax, [ebp - 0x28]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x40b246
cmp edi, esi
ja 0x40b3d4
test ebx, ebx
je 0x40b255
push ebx
push esi
push eax
call fcn.005822f0
add esp, 0xc
mov byte [edi], 0
lea eax, [ebp - 0x1c]
lea ebx, [ebp - 0x28]
lea esi, [ebp - 0x48]
mov ecx, esi
push eax
push 0xffffffffffffffff
mov edi, dword [ebp - 0x10]
push dword [edi + 0x90]
push ebx
call fcn.00556980
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x98]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x57
mov al, byte [0x64f47b]
test al, al
jne 0x40b49e
cmp byte [ebp - 0x3d], 0
jns 0x40b2ac
push dword [ebp - 0x48]
call fcn.0057dc2b
add esp, 4
cmp dword [edi + 4], 3
je 0x40b4ce
mov eax, dword [0x64c0b4]
test al, 2
jne 0x40b3b5
test al, 4
jne 0x40b2d4
test eax, 0xfffffffa
jne 0x40b30f
cmp dword [edi + 4], 2
jl 0x40b30f
lea esi, [ebp - 0x28]
movsx ebx, byte [esi + 0xb]
test ebx, ebx
cmovs ebx, dword [esi + 4]
cmovs esi, dword [esi]
test ebx, ebx
je 0x40b30f
xor edi, edi
mov eax, ebx
sub eax, edi
lea ecx, [esi + edi]
push eax
push ecx
push 2
call fcn.0057f5c2
add esp, 0xc
test eax, eax
js 0x40b307
add edi, eax
cmp edi, ebx
jb 0x40b2ea
mov eax, dword [0x64c0b4]
mov edi, dword [ebp - 0x10]
test al, 1
jne 0x40b37c
cmp dword [edi + 4], 3
je 0x40b43d
cmp byte [ebp - 0x1d], 0
jns 0x40b32e
push dword [ebp - 0x28]
call fcn.0057dc2b
add esp, 4
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.0057dc30
add esp, 4
mov dword [ebp - 0x28], eax
or edi, 0x80000000
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
jmp 0x40b237
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.0057dc30
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x40b11c
call fcn.0040b850
test al, al
je 0x40b313
lea eax, [ebp - 0x28]
movsx ecx, byte [eax + 0xb]
test ecx, ecx
cmovs ecx, dword [eax + 4]
mov dword [ebp - 0x1c], 0xffffffff
cmovs eax, dword [eax]
push 0
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
push dword [0x65076c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40b313
cmp byte [ebp - 0x1d], 0
jns 0x40b3be
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x64c0b4]
jmp 0x40b2c3
call fcn.005aacb0
push str....._third_partylibc_srcinclude__stringchar_traits.h:146:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
jmp 0x40b3e0
push str....._third_partylibc_srcinclude_string_view:326:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
push 0x62a183
call fcn.005aacb0
lea ecx, [ebp - 0x1c]
call fcn.005ab850
lock inc dword [edi + 4]
jmp 0x40b173
lea ecx, [ebp - 0x28]
call fcn.005ab850
xor ebx, ebx
mov esi, 0
test al, 8
je 0x40b116
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x40b0f9
xor esi, esi
mov ebx, 0
test al, 8
je 0x40b231
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x40b214
lea eax, [ebp - 0x28]
mov ecx, edi
mov edx, dword [ebp - 0x2c]
push eax
call fcn.005ddbb0
add esp, 4
jmp 0x40b31d
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x40b1d3
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6445dc]
mov ecx, edi
call esi
jmp 0x40b1d3
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 0x28]
mov dword [eax], ecx
push 0x57aa60
push eax
push 0x64f41c
call fcn.00547ac0
add esp, 0xc
jmp 0x40b18b
movzx ecx, al
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x4c]
mov dword [eax], str.LogMessage
lea edx, [ebp - 0x34]
lea esi, [ebp - 0x1c]
push esi
push eax
call fcn.005dde30
add esp, 8
jmp 0x40b29b
cmp byte [0x650790], 0
jne 0x40b2b6
mov byte [0x650790], 1
mov eax, dword [0x650798]
mov ecx, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b569
mov ecx, dword [ebp - 0x10]
lea esi, [ebp - 0x1c]
push esi
call fcn.005ddb00
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x40b51b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x40b555
je 0x40b525
test ecx, ecx
je 0x40b55f
push eax
push ecx
push dword [0x650794]
call fcn.00405d50
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x40b546
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
mov byte [0x650790], 0
mov edi, dword [ebp - 0x10]
jmp 0x40b2b6
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x40b3e0
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x40b3e0
push 0x650798
call fcn.0057dc73
add esp, 4
cmp dword [0x650798], 0xffffffff
jne 0x40b4ff
push 0x400
push str.LOG_FATAL
call fcn.0040b6f0
add esp, 8
mov dword [0x650794], eax
push 0x650798
call fcn.0057dcc2
add esp, 4
jmp 0x40b4ff