Function at 0x42a210
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 [0x542040]
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.00479570
mov eax, dword [esi + 0x3c]
test al, 0x10
mov dword [ebp - 0x50], esi
je 0x42a552
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x42a252
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x42a513
cmp ebx, 0x7ffffff8
jae 0x42a522
cmp ebx, 0xa
ja 0x42a4a5
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x42a287
cmp edi, esi
ja 0x42a50c
test ebx, ebx
je 0x42a296
push ebx
push esi
push eax
call fcn.00491320
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 0x42a2aa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
jns 0x42a2ba
push dword [ebp - 0x1c]
call fcn.0048d98d
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.0045f450
mov ecx, esi
push 0x5484ec
call fcn.00460bc0
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x53cee4]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x50]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.0045f5e0
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 0x42a56f
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x42a333
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x42a513
cmp ebx, 0x7ffffff8
jae 0x42a52a
cmp ebx, 0xa
ja 0x42a482
lea eax, [ebp - 0x40]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x42a368
cmp edi, esi
ja 0x42a50c
test ebx, ebx
je 0x42a377
push ebx
push esi
push eax
call fcn.00491320
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.004619c0
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 [0x52e4ec]
mov al, byte [eax + 0x56]
test al, al
jne 0x42a5dc
cmp byte [ebp - 0x41], 0
jns 0x42a3d1
push dword [ebp - 0x4c]
call fcn.0048d98d
add esp, 4
cmp dword [esi + 4], 3
je 0x42a60c
mov ecx, dword [0x548d4c]
test ecx, ecx
je 0x42a41f
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 [0x53cee4]
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 0x42a44d
mov eax, dword [0x544014]
test al, 2
jne 0x42a532
test al, 4
jne 0x42a4c8
test eax, 0xfffffffa
jne 0x42a445
cmp dword [esi + 4], 2
jge 0x42a4c8
test al, 1
jne 0x42a59f
cmp dword [esi + 4], 3
je 0x42a58c
cmp byte [ebp - 0x35], 0
jns 0x42a468
push dword [ebp - 0x40]
call fcn.0048d98d
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.004795a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.0048d95d
add esp, 4
mov dword [ebp - 0x40], eax
or edi, 0x80000000
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
jmp 0x42a359
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.0048d95d
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x42a278
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 0x42a445
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.004a31a6
add esp, 0xc
test eax, eax
jns 0x42a699
mov eax, dword [0x544014]
jmp 0x42a445
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 0x42a518
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 0x524b41
call fcn.004bbec0
lea ecx, [ebp - 0x1c]
call fcn.004bb270
lea ecx, [ebp - 0x40]
call fcn.004bb270
cmp byte [ebp - 0x35], 0
lea eax, [ebp - 0x40]
jns 0x42a53e
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x544014]
mov esi, dword [ebp - 0x50]
jmp 0x42a42c
xor ebx, ebx
mov esi, 0
test al, 8
je 0x42a272
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x42a255
xor esi, esi
mov ebx, 0
test al, 8
je 0x42a353
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x42a336
mov ecx, esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
call fcn.004d48f0
jmp 0x42a457
call fcn.004d45e0
test al, al
je 0x42a44d
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 [0x548d40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42a44d
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.004d4e40
add esp, 8
jmp 0x42a3c0
mov bl, byte [0x548d70]
test bl, bl
jne 0x42a3db
mov byte [0x548d70], 1
mov eax, dword [0x548d78]
mov ecx, dword [0x545744]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42a6bc
mov ecx, dword [ebp - 0x50]
lea esi, [ebp - 0x1c]
push esi
call fcn.004d4840
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x42a65a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x42a6a8
sete dl
test ecx, ecx
setne dh
or dh, dl
je 0x42a6b2
push eax
push ecx
push dword [0x548d74]
call fcn.00434e40
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x42a68b
push dword [ebp - 0x1c]
call fcn.0048d98d
add esp, 4
mov byte [0x548d70], bl
mov esi, dword [ebp - 0x50]
jmp 0x42a3db
add edi, eax
cmp edi, ebx
jb 0x42a4e5
jmp 0x42a502
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 0x42a518
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 0x42a518
push 0x548d78
call fcn.0048d9d1
add esp, 4
cmp dword [0x548d78], 0xffffffff
jne 0x42a63e
push 0x400
push str.LOG_FATAL
call fcn.00434e00
add esp, 8
mov dword [0x548d74], eax
push 0x548d78
call fcn.0048da4b
add esp, 4
jmp 0x42a63e