Function at 0x441b50
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, 0x440
mov esi, ecx
mov eax, dword [0x4a6010]
xor eax, ebp
mov dword [esp + 0x438], eax
mov dword [ecx], 0x497ad8
lea eax, [ecx + 8]
mov dword [esp + 4], eax
add ecx, 0xc
lea edi, [esp + 0x38]
mov dword [esp + 8], ecx
push edi
call fcn.004119a0
movzx ebx, byte [esp + 0x43]
test bl, bl
jns 0x441ba6
mov ebx, dword [esp + 0x3c]
push dword [esp + 0x38]
call fcn.004633f6
add esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, dword [esp + 4]
push edi
call fcn.0041a5ba
mov ecx, edi
push 0x4aafe8
call fcn.0042d3a8
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 + 0x38]
call fcn.0041c482
movsx eax, bl
mov esi, dword [esp + 4]
mov ecx, esi
push eax
call fcn.00411260
mov ecx, esi
call fcn.004108e0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
lea esi, [esp + 0x10]
mov ecx, dword [esp + 8]
push esi
call fcn.004119a0
movzx ecx, byte [esp + 0x1b]
mov edi, ecx
test cl, cl
jns 0x441c34
mov edi, dword [esp + 0x14]
mov ebx, dword [esp]
mov eax, dword [ebx + 0x90]
cmp edi, eax
jb 0x442242
mov edx, edi
test cl, cl
jns 0x441c4f
mov esi, dword [esp + 0x10]
add esi, eax
sub edx, eax
je 0x441c5d
test esi, esi
je 0x442106
cmp edx, 0x7ffffff0
jae 0x44218e
cmp edx, 0xa
ja 0x441c7c
mov byte [esp + 0x2f], dl
lea edi, [esp + 0x24]
cmp edi, esi
jbe 0x441caa
jmp 0x441cb5
mov ebx, edx
or ebx, 0xf
inc ebx
push ebx
mov edi, edx
call fcn.004633c6
mov edx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x24], eax
or ebx, 0x80000000
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp]
mov dword [esp + 0x28], edx
cmp edi, esi
ja 0x441cb5
lea eax, [edi + edx]
cmp eax, esi
ja 0x442124
push edx
push esi
push edi
mov esi, edx
call fcn.00466d00
add esp, 0xc
mov byte [edi + esi], 0
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
test byte [0x4a7ef4], 0x19
jne 0x442142
cmp byte [esp + 0x2f], 0
mov edi, dword [esp + 8]
jns 0x441cfe
push dword [esp + 0x24]
call fcn.004633f6
add esp, 4
cmp dword [ebx + 4], 3
jne 0x441deb
cmp byte [0x4ac5d0], 0
jne 0x441deb
mov byte [0x4ac5d0], 1
mov eax, dword [0x4ac5d8]
mov ecx, dword [0x4a9ca0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x442193
mov ecx, edi
lea edi, [esp + 0x38]
push edi
call fcn.004119a0
cmp byte [esp + 0x43], 0
jns 0x441d54
mov edi, dword [esp + 0x38]
add edi, dword [ebx + 0x90]
mov esi, dword [ebx + 0x94]
mov ebx, dword [ebx + 0x98]
test esi, esi
je 0x441d7f
push 0x5c
push esi
call fcn.00467510
add esp, 8
lea ecx, [eax + 1]
test eax, eax
cmove ecx, esi
jmp 0x441d81
xor ecx, ecx
lea esi, [esp + 0x24]
push edi
push ebx
push ecx
push str._s:_d:__s
push esi
call fcn.0043f7f0
add esp, 0x14
cmp byte [esp + 0x43], 0
jns 0x441da9
push dword [esp + 0x38]
call fcn.004633f6
add esp, 4
movzx eax, byte [esp + 0x2f]
test al, al
mov ebx, dword [esp]
mov edi, dword [esp + 8]
jns 0x441dc1
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push esi
push dword [0x4ac5d4]
call fcn.00452d90
add esp, 0xc
cmp byte [esp + 0x2f], 0
jns 0x441de4
push dword [esp + 0x24]
call fcn.004633f6
add esp, 4
mov byte [0x4ac5d0], 0
mov ecx, dword [0x4ac5ac]
test ecx, ecx
je 0x441e3b
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x90]
mov eax, dword [esp]
mov ebx, dword [eax + 0x98]
mov eax, dword [esp]
mov esi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x10]
push eax
push edi
mov edi, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
call ecx
add esp, 0x14
test al, al
jne 0x442094
mov eax, dword [0x4a8b90]
test al, 2
je 0x441e61
cmp byte [esp + 0x1b], 0
jns 0x441e51
mov eax, dword [esp + 0x10]
jmp 0x441e55
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4a8b90]
test al, 4
jne 0x441e70
cmp dword [ebx + 4], 2
jl 0x441eb6
cmp eax, 1
ja 0x441eb6
movzx ebx, byte [esp + 0x1b]
test bl, bl
cmovs ebx, dword [esp + 0x14]
lea esi, [esp + 0x10]
cmovs esi, dword [esp + 0x10]
test ebx, ebx
je 0x441eb6
xor edi, edi
nop dword [eax + eax]
mov eax, ebx
sub eax, edi
lea ecx, [esi + edi]
push eax
push ecx
push 2
call fcn.00476319
add esp, 0xc
test eax, eax
js 0x441ead
add edi, eax
cmp edi, ebx
jb 0x441e90
mov eax, dword [0x4a8b90]
mov edi, dword [esp + 8]
test al, 1
je 0x441ef5
call fcn.00441480
test al, al
je 0x441ef5
mov dword [esp + 0x38], 0xffffffff
movzx eax, byte [esp + 0x1b]
test al, al
cmovs eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
cmovs ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push dword [0x4ac5b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp]
cmp dword [ebx + 4], 3
jne 0x442094
push 0x400
push 0xff
lea eax, [esp + 0x40]
push eax
call fcn.00467280
add esp, 0xc
cmp byte [esp + 0x1b], 0
jns 0x441f26
mov eax, dword [esp + 0x10]
jmp 0x441f2a
lea eax, [esp + 0x10]
push 0x400
push eax
lea esi, [esp + 0x40]
push esi
call fcn.00440190
add esp, 0xc
push esi
call fcn.004108d0
add esp, 4
mov eax, dword [0x4ac5cc]
mov ecx, dword [0x4a9ca0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4421d6
mov eax, dword [0x4ac5c4]
cmp eax, dword [0x4ac5c8]
je 0x442245
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [0x4ac5cc]
mov ecx, dword [0x4a9ca0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x44220c
mov eax, dword [0x4ac5c8]
test eax, eax
mov ecx, dword [0x4ac5c0]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x442248
shl eax, 2
add eax, dword [0x4ac5bc]
lea ecx, [esp + 0x20]
push eax
call fcn.004439c0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44208b
cmp byte [esp + 0x1b], 0
mov dword [esp + 4], eax
jns 0x441fea
mov ebx, dword [esp + 0x10]
jmp 0x441fee
lea ebx, [esp + 0x10]
mov edi, ebx
mov esi, dword [esp + 0xc]
add edi, esi
je 0x44224b
push edi
call fcn.00478f80
add esp, 4
mov edx, dword [esp]
mov ecx, dword [edx + 0x90]
sub esi, ecx
add ebx, ecx
mov ecx, dword [edx + 0x94]
mov edx, dword [edx + 0x98]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov eax, 1
mov esi, dword [esp + 4]
lock xadd dword [esi], eax
test eax, eax
jle 0x44224e
mov dword [esp + 0xc], ecx
cmp eax, 0x7fffffff
mov edi, dword [esp + 8]
je 0x442251
mov ebx, edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
call dword [section..00cfg]
lea eax, [esp + 0x30]
lea edx, [esp + 0x24]
push eax
push edx
push ebx
push dword [esp + 0x18]
push esi
call ecx
add esp, 0x14
lock dec dword [esi]
mov ebx, dword [esp]
jne 0x44208b
push esi
call fcn.00443920
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004439f0
cmp byte [esp + 0x1b], 0
jns 0x4420a7
push dword [esp + 0x10]
call fcn.004633f6
add esp, 4
lea ecx, [ebx + 0x9c]
call fcn.00456a50
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 8], 0x497c84
mov dword [ebx + 0xc], 0x497c90
cmp byte [ebx + 0x37], 0
jns 0x4420d8
push dword [ebx + 0x2c]
call fcn.004633f6
add esp, 4
add ebx, 0x40
mov ecx, edi
call fcn.0041059e
mov ecx, edi
call fcn.004108d0
mov ecx, ebx
call fcn.00410594
mov ecx, dword [esp + 0x438]
xor ecx, ebp
call fcn.00464393
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.basic_string_const_char__n__detected_nullptr
push str.__n__0____s___nullptr
push 0x37f
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.00416390
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xee
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00416390
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
sub esp, 8
movsd xmm0, qword [esp + 0x38]
movsd qword [esp], xmm0
lea edx, [esp + 0x40]
mov ecx, str.LogMessage
call fcn.00442680
add esp, 8
jmp 0x441ce7
call fcn.00474027
push 0x4ac5d8
call fcn.00463467
add esp, 4
cmp dword [0x4ac5d8], 0xffffffff
jne 0x441d3d
push 0x400
push str.LOG_FATAL
call fcn.00452d50
add esp, 8
mov dword [0x4ac5d4], eax
push 0x4ac5d8
call fcn.004634dd
add esp, 4
jmp 0x441d3d
push 0x4ac5cc
call fcn.00463467
add esp, 4
cmp dword [0x4ac5cc], 0xffffffff
jne 0x441f67
xorps xmm0, xmm0
movups xmmword [0x4ac5bc], xmm0
push 0x4ac5cc
call fcn.004634dd
add esp, 4
jmp 0x441f67
push 0x4ac5cc
call fcn.00463467
add esp, 4
cmp dword [0x4ac5cc], 0xffffffff
jne 0x441fa1
xorps xmm0, xmm0
movups xmmword [0x4ac5bc], xmm0
push 0x4ac5cc
call fcn.004634dd
add esp, 4
jmp 0x441fa1
int3
int3
int3
int3
int3
int3