Function at 0x469ad0
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 [0x587040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x3c]
test al, 0x10
mov dword [ebp - 0x48], ecx
je 0x469df4
mov eax, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x38]
cmp ebx, eax
jae 0x469b00
mov dword [ecx + 0x38], eax
mov ebx, eax
mov esi, dword [ecx + 0x20]
sub ebx, esi
js 0x469db5
cmp ebx, 0x7ffffff8
jae 0x469dc4
cmp ebx, 0xa
ja 0x469d47
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x469b35
cmp edi, esi
ja 0x469dae
test ebx, ebx
je 0x469b44
push ebx
push esi
push eax
call fcn.004f03c0
add esp, 0xc
mov esi, dword [ebp - 0x48]
lea ebx, [esi + 8]
mov byte [edi], 0
movsx eax, byte [ebp - 0x11]
test eax, eax
jns 0x469b58
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
jns 0x469b68
push dword [ebp - 0x1c]
call fcn.004ec97e
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, ebx
lea esi, [ebp - 0x1c]
push esi
call fcn.004a0560
mov ecx, esi
push 0x58d5c4
call fcn.004a1a20
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x580f64]
mov ecx, edi
push 0xa
call esi
mov esi, dword [ebp - 0x48]
mov edi, ebx
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.004a06f0
movsx eax, bl
mov ecx, edi
push eax
call fcn.00412680
mov ecx, edi
call fcn.00411560
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 0x469e11
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
cmp ebx, eax
jae 0x469be1
mov dword [esi + 0x38], eax
mov ebx, eax
mov esi, dword [esi + 0x20]
sub ebx, esi
js 0x469db5
cmp ebx, 0x7ffffff8
jae 0x469dcc
cmp ebx, 0xa
ja 0x469d24
lea eax, [ebp - 0x38]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx]
cmp eax, esi
ja 0x469c16
cmp edi, esi
ja 0x469dae
test ebx, ebx
je 0x469c25
push ebx
push esi
push eax
call fcn.004f03c0
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.004a2870
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 [0x574474]
mov al, byte [eax + 0x56]
test al, al
jne 0x469e7e
cmp byte [ebp - 0x39], 0
jns 0x469c7f
push dword [ebp - 0x44]
call fcn.004ec97e
add esp, 4
cmp dword [esi + 4], 3
je 0x469eae
mov ecx, dword [0x58df48]
test ecx, ecx
je 0x469ccd
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 [0x580f64]
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 0x469cf7
mov eax, dword [0x589218]
test al, 2
jne 0x469dd4
test al, 4
jne 0x469d6a
test eax, 0xfffffffa
jne 0x469cef
cmp dword [esi + 4], 2
jge 0x469d6a
test al, 1
jne 0x469e41
cmp dword [esi + 4], 3
je 0x469e2e
cmp byte [ebp - 0x2d], 0
jns 0x469d12
push dword [ebp - 0x38]
call fcn.004ec97e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ecef0
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004ec94e
add esp, 4
mov dword [ebp - 0x38], eax
or edi, 0x80000000
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
jmp 0x469c07
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004ec94e
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
jmp 0x469b26
lea ecx, [ebp - 0x38]
movsx ebx, byte [ecx + 0xb]
test ebx, ebx
cmovs ebx, dword [ecx + 4]
cmovs ecx, dword [ecx]
mov dword [ebp - 0x48], ecx
test ebx, ebx
je 0x469cef
xor edi, edi
mov eax, ebx
sub eax, edi
mov ecx, dword [ebp - 0x48]
add ecx, edi
push eax
push ecx
push 2
call fcn.00503c6d
add esp, 0xc
test eax, eax
jns 0x469f3b
mov eax, dword [0x589218]
jmp 0x469cef
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 0x469dba
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 0x565ab5
call fcn.0051c8d0
lea ecx, [ebp - 0x1c]
call fcn.0051bd70
lea ecx, [ebp - 0x38]
call fcn.0051bd70
cmp byte [ebp - 0x2d], 0
lea eax, [ebp - 0x38]
jns 0x469de0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x589218]
mov esi, dword [ebp - 0x48]
jmp 0x469cda
xor ebx, ebx
mov esi, 0
test al, 8
je 0x469b20
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x469b03
xor esi, esi
mov ebx, 0
test al, 8
je 0x469c01
mov eax, dword [ebp - 0x48]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x1c]
jmp 0x469be4
mov ecx, esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
call fcn.0053d590
jmp 0x469d01
call fcn.0053d280
test al, al
je 0x469cf7
lea eax, [ebp - 0x38]
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 [0x58df3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x469cf7
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.0053dab0
add esp, 8
jmp 0x469c6e
mov bl, byte [0x58df6c]
test bl, bl
jne 0x469c89
mov byte [0x58df6c], 1
mov eax, dword [0x58df74]
mov ecx, dword [0x58a36c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x469f5e
mov ecx, dword [ebp - 0x48]
lea esi, [ebp - 0x1c]
push esi
call fcn.0053d4e0
movsx eax, byte [ebp - 0x11]
mov ecx, esi
test eax, eax
jns 0x469efc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x469f4a
sete dl
test ecx, ecx
setne dh
or dh, dl
je 0x469f54
push eax
push ecx
push dword [0x58df70]
call fcn.00471e30
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x469f2d
push dword [ebp - 0x1c]
call fcn.004ec97e
add esp, 4
mov byte [0x58df6c], bl
mov esi, dword [ebp - 0x48]
jmp 0x469c89
add edi, eax
cmp edi, ebx
jb 0x469d87
jmp 0x469da4
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 0x469dba
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 0x469dba
push 0x58df74
call fcn.004ec9c1
add esp, 4
cmp dword [0x58df74], 0xffffffff
jne 0x469ee0
push 0x400
push str.LOG_FATAL
call fcn.00471df0
add esp, 8
mov dword [0x58df70], eax
push 0x58df74
call fcn.004eca3b
add esp, 4
jmp 0x469ee0