Function at 0x407b00
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 0x407e36
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x407b26
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x407df1
cmp ebx, 0x7ffffff8
jae 0x407e00
cmp ebx, 0xa
ja 0x407d89
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x407b5b
cmp edi, esi
ja 0x407dea
test ebx, ebx
je 0x407b6a
push ebx
push esi
push eax
call fcn.00569390
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 0x407b7e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jns 0x407b8e
push dword [ebp - 0x1c]
call fcn.00564ea0
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov edi, dword [esi + eax + 0x1c]
cmp edi, 0x648d88
jne 0x407e08
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], 0x648e40
mov eax, dword [0x648e40]
cmp eax, 0xffffffff
jne 0x407eac
mov eax, dword [0x648e44]
lea edx, [eax - 1]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0xc]
sub esi, ecx
sar esi, 2
cmp esi, edx
jbe 0x407de5
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x407de5
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x63e64c]
mov ecx, ebx
push 0xa
call esi
mov ebx, eax
cmp edi, 0x648d88
jne 0x407e86
movsx eax, bl
mov esi, dword [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00408130
mov ecx, esi
call fcn.00407fe0
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 0x407e53
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x407c41
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x407df1
cmp ebx, 0x7ffffff8
jae 0x407e11
cmp ebx, 0xa
ja 0x407d66
lea eax, [ebp - 0x28]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x407c76
cmp edi, esi
ja 0x407dea
test ebx, ebx
je 0x407c85
push ebx
push esi
push eax
call fcn.00569390
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.0054ba80
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 [0x649493]
test al, al
jne 0x407ed1
cmp byte [ebp - 0x3d], 0
jns 0x407cdc
push dword [ebp - 0x48]
call fcn.00564ea0
add esp, 4
cmp dword [edi + 4], 3
je 0x407f01
mov eax, dword [0x6460b4]
test al, 2
jne 0x407e19
test al, 4
jne 0x407d04
test eax, 0xfffffffa
jne 0x407d3f
cmp dword [edi + 4], 2
jl 0x407d3f
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 0x407d3f
xor edi, edi
mov eax, ebx
sub eax, edi
lea ecx, [esi + edi]
push eax
push ecx
push 2
call fcn.00566837
add esp, 0xc
test eax, eax
js 0x407d37
add edi, eax
cmp edi, ebx
jb 0x407d1a
mov eax, dword [0x6460b4]
mov edi, dword [ebp - 0x10]
test al, 1
jne 0x407dac
cmp dword [edi + 4], 3
je 0x407e70
cmp byte [ebp - 0x1d], 0
jns 0x407d5e
push dword [ebp - 0x28]
call fcn.00564ea0
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.00564ea5
add esp, 4
mov dword [ebp - 0x28], eax
or edi, 0x80000000
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
jmp 0x407c67
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.00564ea5
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x407b4c
call fcn.004084b0
test al, al
je 0x407d43
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 [0x64a784]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x407d43
call fcn.00591ed0
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 0x407df6
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 0x624173
call fcn.00591ed0
lea ecx, [ebp - 0x1c]
call fcn.00592560
lock inc dword [edi + 4]
jmp 0x407ba3
lea ecx, [ebp - 0x28]
call fcn.00592560
cmp byte [ebp - 0x1d], 0
jns 0x407e22
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x6460b4]
mov edi, dword [ebp - 0x10]
jmp 0x407cf3
xor ebx, ebx
mov esi, 0
test al, 8
je 0x407b46
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x407b29
xor esi, esi
mov ebx, 0
test al, 8
je 0x407c61
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x407c44
lea eax, [ebp - 0x28]
mov ecx, edi
mov edx, dword [ebp - 0x2c]
push eax
call fcn.005bc430
add esp, 4
jmp 0x407d4d
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x407c03
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x63e64c]
mov ecx, edi
call esi
jmp 0x407c03
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 0x28]
mov dword [eax], ecx
push 0x5621c0
push eax
push 0x648e40
call fcn.00530180
add esp, 0xc
jmp 0x407bbb
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.005bc6b0
add esp, 8
jmp 0x407ccb
cmp byte [0x64a7a8], 0
jne 0x407ce6
mov byte [0x64a7a8], 1
mov eax, dword [0x64a7b0]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407f9c
mov ecx, dword [ebp - 0x10]
lea esi, [ebp - 0x1c]
push esi
call fcn.005bc380
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x407f4e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x407f88
je 0x407f58
test ecx, ecx
je 0x407f92
push eax
push ecx
push dword [0x64a7ac]
call fcn.00405c30
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x407f79
push dword [ebp - 0x1c]
call fcn.00564ea0
add esp, 4
mov byte [0x64a7a8], 0
mov edi, dword [ebp - 0x10]
jmp 0x407ce6
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 0x407df6
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 0x407df6
push 0x64a7b0
call fcn.00564ee8
add esp, 4
cmp dword [0x64a7b0], 0xffffffff
jne 0x407f32
push 0x400
push str.LOG_FATAL
call fcn.00408120
add esp, 8
mov dword [0x64a7ac], eax
push 0x64a7b0
call fcn.00564f37
add esp, 4
jmp 0x407f32