Function at 0x42fdc0
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 [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x3c]
test al, 0x10
mov dword [ebp - 0x48], ecx
je 0x430087
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x42fdf0
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x430048
cmp ebx, 0x7ffffff8
jae 0x430057
cmp ebx, 0xa
jbe 0x430036
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.00459b0c
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
lea edi, [eax + ebx]
cmp eax, esi
ja 0x42fe3d
cmp edi, esi
ja 0x430041
test ebx, ebx
je 0x42fe4c
push ebx
push esi
push eax
call fcn.00463080
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 0x42fe60
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
jns 0x42fe70
push dword [ebp - 0x1c]
call fcn.00459b3c
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.00448910
mov ecx, esi
push 0x4f7298
call fcn.00449390
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4e925c]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x48]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.00448a50
movsx eax, bl
mov ecx, edi
push eax
call fcn.00411090
mov ecx, edi
call fcn.00410440
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
je 0x4300a0
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x42fee9
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x430048
cmp ebx, 0x7ffffff8
jae 0x43005f
cmp ebx, 0xa
jbe 0x43002b
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.00459b0c
add esp, 4
mov dword [ebp - 0x38], eax
or edi, 0x80000000
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
lea edi, [eax + ebx]
cmp eax, esi
ja 0x42ff36
cmp edi, esi
ja 0x430041
test ebx, ebx
je 0x42ff45
push ebx
push esi
push eax
call fcn.00463080
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.00429b40
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 [0x4e0908]
mov al, byte [eax + 0x56]
test al, al
jne 0x430109
cmp byte [ebp - 0x39], 0
jns 0x42ff9f
push dword [ebp - 0x44]
call fcn.00459b3c
add esp, 4
cmp dword [esi + 4], 3
je 0x430139
mov ecx, dword [0x4f7fe4]
test ecx, ecx
je 0x42ffed
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
mov ebx, dword [esi + 0x90]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x98]
mov eax, dword [ebp - 0x48]
mov edi, dword [eax + 0x94]
call dword [0x4e925c]
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov esi, dword [ebp - 0x48]
push edi
push dword [ebp - 0x50]
call ecx
add esp, 0x14
test al, al
jne 0x42fffe
mov eax, dword [0x4f11c8]
test al, 2
jne 0x430067
test al, 1
jne 0x4300cc
cmp dword [esi + 4], 3
je 0x4300b9
cmp byte [ebp - 0x2d], 0
jns 0x430019
push dword [ebp - 0x38]
call fcn.00459b3c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x38]
mov byte [eax + 0xb], bl
jmp 0x42ff27
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
jmp 0x42fe2e
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
jmp 0x43004d
push str....._third_partylibc_srcinclude_string_view:323:_assertion____end_____begin____0_failed:_std::string_view::string_view_iterator__sentinel__received_invalid_range_n
push 0x4d745c
call fcn.00492230
lea ecx, [ebp - 0x1c]
call fcn.0048fee0
lea ecx, [ebp - 0x38]
call fcn.0048fee0
cmp byte [ebp - 0x2d], 0
lea eax, [ebp - 0x38]
jns 0x430073
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4f11c8]
mov esi, dword [ebp - 0x48]
jmp 0x42fff6
xor ebx, ebx
mov esi, 0
test al, 8
je 0x430036
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x42fdf3
xor esi, esi
mov ebx, 0
test al, 8
je 0x43002b
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x42feec
mov ecx, esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
call fcn.004b55b0
jmp 0x430008
call fcn.004b5280
test al, al
je 0x42fffe
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 [0x4f7ff0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42fffe
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.004b5aa0
add esp, 8
jmp 0x42ff8e
cmp byte [0x4f800c], 0
jne 0x42ffa9
mov byte [0x4f800c], 1
mov eax, dword [0x4f8014]
mov ecx, dword [0x4f269c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4301d4
mov ecx, dword [ebp - 0x48]
lea esi, [ebp - 0x1c]
push esi
call fcn.004b5500
movzx eax, byte [ebp - 0x11]
mov ecx, esi
test al, al
jns 0x430186
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x4301c0
je 0x430190
test ecx, ecx
je 0x4301ca
push eax
push ecx
push dword [0x4f8010]
call fcn.00437340
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4301b1
push dword [ebp - 0x1c]
call fcn.00459b3c
add esp, 4
mov byte [0x4f800c], 0
mov esi, dword [ebp - 0x48]
jmp 0x42ffa9
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 0x43004d
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 0x43004d
push 0x4f8014
call fcn.00459bb7
add esp, 4
cmp dword [0x4f8014], 0xffffffff
jne 0x43016a
push 0x400
push str.LOG_FATAL
call fcn.00437300
add esp, 8
mov dword [0x4f8010], eax
push 0x4f8014
call fcn.00459c2d
add esp, 4
jmp 0x43016a