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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x450
mov eax, dword [0x557008]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x53bdb4
lea edi, [ecx + 8]
mov dword [esp + 4], ecx
add ecx, 0xc
lea esi, [esp + 0x48]
mov dword [esp + 0x14], ecx
push esi
call fcn.0045bf40
movzx eax, byte [esi + 0xb]
mov dword [esp + 0xc], eax
test al, al
jns 0x42b6af
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
jns 0x42b6bd
push dword [esp + 0x48]
call fcn.004a8b10
add esp, 4
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 8], edi
add ecx, edi
lea esi, [esp + 0x48]
push esi
call fcn.00468d30
mov ecx, esi
push 0x56a614
call fcn.00469860
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push 0xa
call esi
mov ebx, eax
lea ecx, [esp + 0x48]
call fcn.00468e70
movsx eax, bl
mov esi, dword [esp + 8]
mov ecx, esi
push eax
call fcn.004118a0
mov ecx, esi
call fcn.00410a30
xor esi, esi
dec esi
lea edi, [esp + 0x2c]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, dword [esp + 0x14]
push edi
call fcn.0045bf40
lea ebx, [esp + 0x20]
mov ecx, ebx
lea eax, [esp + 0x48]
push eax
push esi
mov esi, dword [esp + 0xc]
push dword [esi + 0x90]
mov dword [esp + 0x1c], edi
push edi
call fcn.00425960
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
test byte [0x55a0d0], 0x19
jne 0x42baf3
cmp byte [esp + 0x2b], 0
jns 0x42b786
push dword [esp + 0x20]
call fcn.004a8b10
add esp, 4
mov eax, dword [esp + 4]
cmp dword [eax + 4], 3
je 0x42b93b
mov ecx, dword [0x56ad18]
test ecx, ecx
je 0x42b7d6
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ebx, dword [eax + 0x90]
mov edi, dword [eax + 0x98]
mov esi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push esi
push dword [esp + 0x18]
call ecx
add esp, 0x14
test al, al
jne 0x42b814
mov eax, dword [0x559cc8]
test al, 2
jne 0x42b8d3
test al, 4
jne 0x42b88e
cmp eax, 1
ja 0x42b7fe
mov ecx, dword [esp + 4]
cmp dword [ecx + 4], 2
jge 0x42b88e
test al, 1
jne 0x42b8f6
mov eax, dword [esp + 4]
cmp dword [eax + 4], 3
je 0x42b997
cmp byte [esp + 0x37], 0
jns 0x42b827
push dword [esp + 0x2c]
call fcn.004a8b10
add esp, 4
mov esi, dword [esp + 4]
lea ecx, [esi + 0x9c]
call fcn.00475800
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x53c1c0
mov dword [esi + 0xc], 0x53c1d0
cmp byte [esi + 0x37], 0
jns 0x42b85c
push dword [esi + 0x2c]
call fcn.004a8b10
add esp, 4
add esi, 0x40
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0045b830
mov ecx, edi
call fcn.0045bf30
mov ecx, esi
call fcn.0045b820
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.004a927c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x2c]
movzx ecx, byte [esi + 0xb]
mov edi, ecx
and edi, 0x7f
test cl, cl
cmovs edi, dword [esi + 4]
cmovs esi, dword [esi]
test edi, edi
je 0x42b7fe
xor ebx, ebx
mov eax, edi
sub eax, ebx
lea ecx, [esi + ebx]
push eax
push ecx
push 2
call fcn.004bdeae
add esp, 0xc
test eax, eax
jns 0x42ba2e
mov eax, dword [0x559cc8]
jmp 0x42b7fe
cmp byte [esp + 0x37], 0
jns 0x42b8e2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x559cc8]
jmp 0x42b7e3
call fcn.004ebeb0
test al, al
je 0x42b806
lea eax, [esp + 0x2c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
mov dword [esp + 0x48], 0xffffffff
cmovs eax, dword [eax]
push 0
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push dword [0x56ad24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42b806
cmp byte [0x56ad40], 0
jne 0x42b794
mov byte [0x56ad40], 1
mov eax, dword [0x56ad48]
mov ecx, dword [0x55ae20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42bb4f
mov ecx, dword [esp + 4]
lea eax, [esp + 0x48]
push eax
call fcn.004ec1e0
movzx eax, byte [esp + 0x53]
test al, al
js 0x42baac
and eax, 0x7f
lea edx, [esp + 0x48]
jmp 0x42bab4
mov esi, 0x400
push esi
push 0xff
lea eax, [esp + 0x50]
push eax
call fcn.004acae0
add esp, 0xc
cmp byte [esp + 0x37], 0
jns 0x42b9bc
mov eax, dword [esp + 0x2c]
jmp 0x42b9c0
lea eax, [esp + 0x2c]
push esi
push eax
lea esi, [esp + 0x50]
push esi
call fcn.0046cfa0
add esp, 0xc
push esi
call fcn.0045bf30
add esp, 4
call fcn.004ec0d0
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x42bb92
mov dword [esp + 0x20], 0xffffffff
call fcn.004ec0d0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x42bb95
shl edx, 2
add edx, dword [eax]
lea esi, [esp + 0x20]
mov ecx, esi
push edx
call fcn.0046e5d0
cmp dword [esi], 0
jne 0x42ba3d
lea ecx, [esp + 0x20]
call fcn.0046e600
jmp 0x42b814
add ebx, eax
cmp ebx, edi
jb 0x42b8ae
jmp 0x42b8c9
cmp byte [esp + 0x37], 0
js 0x42ba4a
lea edi, [esp + 0x2c]
jmp 0x42ba4e
mov edi, dword [esp + 0x2c]
mov ebx, edi
add ebx, dword [esp + 0xc]
je 0x42bb31
push ebx
call fcn.004c1530
add esp, 4
mov dword [esp + 8], eax
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0xc]
sub edx, eax
add edi, eax
lea ecx, [esp + 0x18]
push edx
push edi
call fcn.0045c520
lea ecx, [esp + 0x20]
push dword [esp + 8]
push ebx
lea eax, [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push dword [esi + 0x98]
push dword [esi + 0x94]
call fcn.004ec130
jmp 0x42ba20
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea esi, [esp + 0x20]
mov ecx, esi
push eax
push edx
call fcn.0045c520
push dword [esi + 4]
push dword [esi]
push dword [0x56ad44]
call fcn.00438d10
add esp, 0xc
cmp byte [esp + 0x53], 0
jns 0x42bae7
push dword [esp + 0x48]
call fcn.004a8b10
add esp, 4
mov byte [0x56ad40], 0
jmp 0x42b794
lea eax, [esp + 0x38]
lea edx, [esp + 0x48]
mov dword [edx], eax
lea eax, [esp + 0x3c]
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
sub esp, 8
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
mov ecx, str.LogMessage
call fcn.004ec520
add esp, 8
jmp 0x42b773
push str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
push str.__s___nullptr
push 0x109
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.004d6920
push 0x56ad48
call fcn.004a8b87
add esp, 4
cmp dword [0x56ad48], 0xffffffff
jne 0x42b970
push 0x400
push str.LOG_FATAL
call fcn.00438cd0
add esp, 8
mov dword [0x56ad44], eax
push 0x56ad48
call fcn.004a8bfd
add esp, 4
jmp 0x42b970
int3
int3