Function at 0x1c497f0
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 [0x1cff040]
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.01c76180
mov eax, dword [esi + 0x3c]
test al, 0x10
mov dword [ebp - 0x50], esi
je 0x1c49b32
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x1c49832
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x1c49af3
cmp ebx, 0x7ffffff8
jae 0x1c49b02
cmp ebx, 0xa
ja 0x1c49a85
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x1c49867
cmp edi, esi
ja 0x1c49aec
test ebx, ebx
je 0x1c49876
push ebx
push esi
push eax
call fcn.01c8a630
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 0x1c4988a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
jns 0x1c4989a
push dword [ebp - 0x1c]
call fcn.01c86cb6
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.01c634d0
mov ecx, esi
push 0x1d1b6dc
call fcn.01c64b70
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1cfa1e0]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x50]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.01c63660
movsx eax, bl
mov ecx, edi
push eax
call fcn.01c314b0
mov ecx, edi
call fcn.01c305d0
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 0x1c49b4f
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x1c49913
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x1c49af3
cmp ebx, 0x7ffffff8
jae 0x1c49b0a
cmp ebx, 0xa
ja 0x1c49a62
lea eax, [ebp - 0x40]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x1c49948
cmp edi, esi
ja 0x1c49aec
test ebx, ebx
je 0x1c49957
push ebx
push esi
push eax
call fcn.01c8a630
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.01c65730
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x58
mov eax, dword [0x1cf30d4]
mov al, byte [eax + 0x58]
test al, al
jne 0x1c49bbc
cmp byte [ebp - 0x41], 0
jns 0x1c499b1
push dword [ebp - 0x4c]
call fcn.01c86cb6
add esp, 4
cmp dword [esi + 4], 3
je 0x1c49bec
mov ecx, dword [0x1d1cd68]
test ecx, ecx
je 0x1c499ff
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 [0x1cfa1e0]
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 0x1c49a2d
mov eax, dword [0x1d19288]
test al, 2
jne 0x1c49b12
test al, 4
jne 0x1c49aa8
test eax, 0xfffffffa
jne 0x1c49a25
cmp dword [esi + 4], 2
jge 0x1c49aa8
test al, 1
jne 0x1c49b7f
cmp dword [esi + 4], 3
je 0x1c49b6c
cmp byte [ebp - 0x35], 0
jns 0x1c49a48
push dword [ebp - 0x40]
call fcn.01c86cb6
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.01c761b0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.01c86c86
add esp, 4
mov dword [ebp - 0x40], eax
or edi, 0x80000000
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
jmp 0x1c49939
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.01c86c86
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x1c49858
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 0x1c49a25
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.01c9ce7e
add esp, 0xc
test eax, eax
jns 0x1c49c79
mov eax, dword [0x1d19288]
jmp 0x1c49a25
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 0x1c49af8
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 0x1ce99e6
call fcn.01cb3fe0
lea ecx, [ebp - 0x1c]
call fcn.01cb3170
lea ecx, [ebp - 0x40]
call fcn.01cb3170
cmp byte [ebp - 0x35], 0
lea eax, [ebp - 0x40]
jns 0x1c49b1e
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1d19288]
mov esi, dword [ebp - 0x50]
jmp 0x1c49a0c
xor ebx, ebx
mov esi, 0
test al, 8
je 0x1c49852
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x1c49835
xor esi, esi
mov ebx, 0
test al, 8
je 0x1c49933
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x1c49916
mov ecx, esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
call fcn.01ccf900
jmp 0x1c49a37
call fcn.01ccf5f0
test al, al
je 0x1c49a2d
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 [0x1d1cd5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1c49a2d
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.01ccfe40
add esp, 8
jmp 0x1c499a0
mov bl, byte [0x1d1cd8c]
test bl, bl
jne 0x1c499bb
mov byte [0x1d1cd8c], 1
mov eax, dword [0x1d1cd94]
mov ecx, dword [0x1d1a468]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c49c9c
mov ecx, dword [ebp - 0x50]
lea esi, [ebp - 0x1c]
push esi
call fcn.01ccf850
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x1c49c3a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x1c49c88
sete dl
test ecx, ecx
setne dh
or dh, dl
je 0x1c49c92
push eax
push ecx
push dword [0x1d1cd90]
call fcn.01c49d00
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c49c6b
push dword [ebp - 0x1c]
call fcn.01c86cb6
add esp, 4
mov byte [0x1d1cd8c], bl
mov esi, dword [ebp - 0x50]
jmp 0x1c499bb
add edi, eax
cmp edi, ebx
jb 0x1c49ac5
jmp 0x1c49ae2
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 0x1c49af8
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 0x1c49af8
push 0x1d1cd94
call fcn.01c86cf1
add esp, 4
cmp dword [0x1d1cd94], 0xffffffff
jne 0x1c49c1e
push 0x400
push str.LOG_FATAL
call fcn.01c49ce0
add esp, 8
mov dword [0x1d1cd90], eax
push 0x1d1cd94
call fcn.01c86d6b
add esp, 4
jmp 0x1c49c1e