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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x3c]
test al, 0x10
mov dword [ebp - 0x48], ecx
jne 0x4900e3
xor ebx, ebx
mov esi, 0
test al, 8
je 0x49012e
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x4900f5
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x4900f2
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x490471
cmp ebx, 0x7ffffff8
jae 0x4904be
cmp ebx, 0xa
jbe 0x49012e
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004dfb05
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x490134
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x490143
cmp edi, esi
ja 0x490478
test ebx, ebx
je 0x490152
push ebx
push esi
push eax
call fcn.004e3510
add esp, 0xc
mov esi, dword [ebp - 0x48]
lea ebx, [esi + 8]
mov byte [edi], 0
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x490166
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
jns 0x490176
push dword [ebp - 0x1c]
call fcn.004dfb35
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.00459430
mov ecx, esi
push 0x5451dc
call fcn.00472bf0
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x53a380]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x48]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.0045b460
movsx eax, bl
mov ecx, edi
push eax
call fcn.004125f0
mov ecx, edi
call fcn.00411790
xor eax, eax
dec eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x3c]
test al, 0x10
jne 0x4901f2
xor esi, esi
mov ebx, 0
test al, 8
je 0x49023d
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x490204
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x490201
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x490471
cmp ebx, 0x7ffffff8
jae 0x4904c6
cmp ebx, 0xa
jbe 0x49023d
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004dfb05
add esp, 4
mov dword [ebp - 0x38], eax
or edi, 0x80000000
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
jmp 0x490243
lea eax, [ebp - 0x38]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x490252
cmp edi, esi
ja 0x490478
test ebx, ebx
je 0x490261
push ebx
push esi
push eax
call fcn.004e3510
add esp, 0xc
mov byte [edi], 0
lea edx, [ebp - 0x38]
lea ebx, [ebp - 0x44]
mov ecx, ebx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
mov esi, dword [ebp - 0x48]
push dword [esi + 0x90]
push edx
call fcn.00478430
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x57
mov eax, dword [0x52ce88]
mov al, byte [eax + 0x57]
test al, al
jne 0x49048e
cmp byte [ebp - 0x39], 0
jns 0x4902bb
push dword [ebp - 0x44]
call fcn.004dfb35
add esp, 4
cmp dword [esi + 4], 3
jne 0x49034b
cmp byte [0x546b30], 0
jne 0x49034b
mov byte [0x546b30], 1
mov eax, dword [0x546b38]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4904ce
mov ecx, esi
lea edi, [ebp - 0x1c]
push edi
call fcn.00490520
movzx eax, byte [ebp - 0x11]
mov ecx, edi
test al, al
jns 0x490311
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x49046a
je 0x490323
test ecx, ecx
je 0x490487
push eax
push ecx
push dword [0x546b34]
call fcn.004a98b0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x490344
push dword [ebp - 0x1c]
call fcn.004dfb35
add esp, 4
mov byte [0x546b30], 0
mov ecx, dword [0x546b08]
test ecx, ecx
je 0x49038c
mov eax, dword [esi + 4]
mov dword [ebp - 0x4c], eax
mov edi, dword [esi + 0x90]
mov ebx, dword [esi + 0x98]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x94]
call dword [0x53a380]
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push esi
mov esi, dword [ebp - 0x48]
push dword [ebp - 0x4c]
call ecx
add esp, 0x14
test al, al
jne 0x4903fd
mov eax, dword [0x542504]
test al, 2
je 0x4903ad
cmp byte [ebp - 0x2d], 0
lea eax, [ebp - 0x38]
jns 0x4903a1
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x542504]
test al, 4
jne 0x4903be
test eax, 0xfffffffa
jne 0x4903f9
cmp dword [esi + 4], 2
jl 0x4903f9
lea edi, [ebp - 0x38]
movzx ebx, byte [edi + 0xb]
test bl, bl
cmovs ebx, dword [edi + 4]
cmovs edi, dword [edi]
test ebx, ebx
je 0x4903f9
xor esi, esi
mov eax, ebx
sub eax, esi
lea ecx, [edi + esi]
push eax
push ecx
push 2
call fcn.004f7386
add esp, 0xc
test eax, eax
js 0x4903f1
add esi, eax
cmp esi, ebx
jb 0x4903d4
mov eax, dword [0x542504]
mov esi, dword [ebp - 0x48]
test al, 1
jne 0x490434
cmp dword [esi + 4], 3
jne 0x490411
mov ecx, esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x50]
call fcn.00490660
cmp byte [ebp - 0x2d], 0
jns 0x490422
push dword [ebp - 0x38]
call fcn.004dfb35
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0050fbd0
test al, al
je 0x4903fd
lea eax, [ebp - 0x38]
movzx ecx, byte [eax + 0xb]
test cl, cl
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 [0x546b14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4903fd
push str....._third_partylibc_srcinclude_string_view:311:_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 0x49047d
push str....._third_partylibc_srcinclude_string_view:323:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
jmp 0x49047d
push str....._third_partylibc_srcinclude__stringchar_traits.h:245:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x521354
call fcn.0044d640
push str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x49047d
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.00490de0
add esp, 8
jmp 0x4902aa
lea ecx, [ebp - 0x1c]
call fcn.004147a0
lea ecx, [ebp - 0x38]
call fcn.004147a0
push 0x546b38
call fcn.004dfba7
add esp, 4
cmp dword [0x546b38], 0xffffffff
jne 0x4902f6
push 0x400
push str.LOG_FATAL
call fcn.004a9870
add esp, 8
mov dword [0x546b34], eax
push 0x546b38
call fcn.004dfc1d
add esp, 4
jmp 0x4902f6