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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov esi, ecx
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea ecx, [ebp - 0x34]
mov dword [ecx], eax
mov dword [ecx + 4], eax
call fcn.004cb9e0
mov eax, dword [esi + 0x3c]
test al, 0x10
mov dword [ebp - 0x50], esi
je 0x44ecb2
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x44e9b2
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x44ec73
cmp ebx, 0x7ffffff8
jae 0x44ec82
cmp ebx, 0xa
ja 0x44ec05
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x44e9e7
cmp edi, esi
ja 0x44ec6c
test ebx, ebx
je 0x44e9f6
push ebx
push esi
push eax
call fcn.004f8b10
add esp, 0xc
mov esi, dword [ebp - 0x50]
lea ebx, [esi + 8]
mov byte [edi], 0
movsx eax, byte [ebp - 0x11]
test eax, eax
jns 0x44ea0a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
jns 0x44ea1a
push dword [ebp - 0x1c]
call fcn.004f50ae
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.004a22b0
mov ecx, esi
push 0x5cdd10
call fcn.004a3a20
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x5c0d2c]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x50]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.004a2440
movsx eax, bl
mov ecx, edi
push eax
call fcn.004128d0
mov ecx, edi
call fcn.00411560
xor eax, eax
dec eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x3c]
test al, 0x10
je 0x44eccf
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x44ea93
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x44ec73
cmp ebx, 0x7ffffff8
jae 0x44ec8a
cmp ebx, 0xa
ja 0x44ebe2
lea eax, [ebp - 0x40]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x44eac8
cmp edi, esi
ja 0x44ec6c
test ebx, ebx
je 0x44ead7
push ebx
push esi
push eax
call fcn.004f8b10
add esp, 0xc
mov byte [edi], 0
lea edx, [ebp - 0x40]
lea ebx, [ebp - 0x4c]
mov ecx, ebx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
mov esi, dword [ebp - 0x50]
push dword [esi + 0x90]
push edx
call fcn.004a49a0
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x56
mov eax, dword [0x5abe0c]
mov al, byte [eax + 0x56]
test al, al
jne 0x44ed3c
cmp byte [ebp - 0x41], 0
jns 0x44eb31
push dword [ebp - 0x4c]
call fcn.004f50ae
add esp, 4
cmp dword [esi + 4], 3
je 0x44ed6c
mov ecx, dword [0x5ce660]
test ecx, ecx
je 0x44eb7f
mov eax, dword [esi + 4]
mov dword [ebp - 0x58], eax
mov ebx, dword [esi + 0x90]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x98]
mov eax, dword [ebp - 0x50]
mov edi, dword [eax + 0x94]
call dword [0x5c0d2c]
lea eax, [ebp - 0x40]
push eax
push ebx
push esi
mov esi, dword [ebp - 0x50]
push edi
push dword [ebp - 0x58]
call ecx
add esp, 0x14
test al, al
jne 0x44ebad
mov eax, dword [0x5c94bc]
test al, 2
jne 0x44ec92
test al, 4
jne 0x44ec28
test eax, 0xfffffffa
jne 0x44eba5
cmp dword [esi + 4], 2
jge 0x44ec28
test al, 1
jne 0x44ecff
cmp dword [esi + 4], 3
je 0x44ecec
cmp byte [ebp - 0x35], 0
jns 0x44ebc8
push dword [ebp - 0x40]
call fcn.004f50ae
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.004cba10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5620
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004f507e
add esp, 4
mov dword [ebp - 0x40], eax
or edi, 0x80000000
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
jmp 0x44eab9
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004f507e
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x44e9d8
lea ecx, [ebp - 0x40]
movsx ebx, byte [ecx + 0xb]
test ebx, ebx
cmovs ebx, dword [ecx + 4]
cmovs ecx, dword [ecx]
mov dword [ebp - 0x50], ecx
test ebx, ebx
je 0x44eba5
xor edi, edi
mov eax, ebx
sub eax, edi
mov ecx, dword [ebp - 0x50]
add ecx, edi
push eax
push ecx
push 2
call fcn.0050c9d7
add esp, 0xc
test eax, eax
jns 0x44edf9
mov eax, dword [0x5c94bc]
jmp 0x44eba5
push str....._third_partylibc_srcinclude__stringchar_traits.h:145:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
jmp 0x44ec78
push str....._third_partylibc_srcinclude_string_view:330:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
push 0x59f83f
call fcn.00526860
lea ecx, [ebp - 0x1c]
call fcn.00525850
lea ecx, [ebp - 0x40]
call fcn.00525850
cmp byte [ebp - 0x35], 0
lea eax, [ebp - 0x40]
jns 0x44ec9e
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5c94bc]
mov esi, dword [ebp - 0x50]
jmp 0x44eb8c
xor ebx, ebx
mov esi, 0
test al, 8
je 0x44e9d2
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x44e9b5
xor esi, esi
mov ebx, 0
test al, 8
je 0x44eab3
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x44ea96
mov ecx, esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
call fcn.005425e0
jmp 0x44ebb7
call fcn.005422d0
test al, al
je 0x44ebad
lea eax, [ebp - 0x40]
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 [0x5ce654]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44ebad
movzx ecx, al
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x20]
mov dword [eax], str.LogMessage
lea edx, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
push edi
push eax
call fcn.00542b40
add esp, 8
jmp 0x44eb20
mov bl, byte [0x5ce684]
test bl, bl
jne 0x44eb3b
mov byte [0x5ce684], 1
mov eax, dword [0x5ce68c]
mov ecx, dword [0x5cacb4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x44ee1c
mov ecx, dword [ebp - 0x50]
lea esi, [ebp - 0x1c]
push esi
call fcn.00542530
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x44edba
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x44ee08
sete dl
test ecx, ecx
setne dh
or dh, dl
je 0x44ee12
push eax
push ecx
push dword [0x5ce688]
call fcn.004622d0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x44edeb
push dword [ebp - 0x1c]
call fcn.004f50ae
add esp, 4
mov byte [0x5ce684], bl
mov esi, dword [ebp - 0x50]
jmp 0x44eb3b
add edi, eax
cmp edi, ebx
jb 0x44ec45
jmp 0x44ec62
push str....._third_partylibc_srcinclude_string_view:318:_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 0x44ec78
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x44ec78
push 0x5ce68c
call fcn.004f50f1
add esp, 4
cmp dword [0x5ce68c], 0xffffffff
jne 0x44ed9e
push 0x400
push str.LOG_FATAL
call fcn.004622b0
add esp, 8
mov dword [0x5ce688], eax
push 0x5ce68c
call fcn.004f516b
add esp, 4
jmp 0x44ed9e