Function at 0x451670
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 esi, esp
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esi + 0x448], eax
mov dword [ecx], 0x4cf558
lea eax, [ecx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add ecx, 0xc
lea edi, [esi + 0x48]
mov dword [esi + 0x10], ecx
push edi
call fcn.00411c50
movzx ebx, byte [esi + 0x53]
test bl, bl
jns 0x4516c2
mov ebx, dword [esi + 0x4c]
push dword [esi + 0x48]
call fcn.0049893c
add esp, 4
mov dword [esi + 0x20], ebx
mov edx, dword [esi + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
push edi
call fcn.0041991a
mov ecx, edi
push 0x4e8450
call fcn.0042cf88
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
lea ecx, [esi + 0x48]
call fcn.0041b83e
movsx eax, bl
mov edi, dword [esi + 8]
mov ecx, edi
push eax
call fcn.004114e0
mov ecx, edi
call fcn.00410920
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
lea eax, [esi + 0x28]
mov ebx, dword [esi + 0x10]
mov ecx, ebx
mov dword [esi + 8], eax
push eax
call fcn.00411c50
mov ecx, dword [0x5f3c60]
test ecx, ecx
je 0x4517e6
mov dword [esi + 4], esp
push eax
sub esp, 8
mov edi, esp
cmp byte [esi + 0x33], 0
js 0x451769
mov eax, dword [esi + 0x30]
mov dword [edi + 8], eax
movsd xmm0, qword [esi + 0x28]
movsd qword [edi], xmm0
jmp 0x4517de
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp eax, 0xa
mov dword [esi + 0x14], ecx
ja 0x451780
mov byte [edi + 0xb], al
cmp edi, edx
jbe 0x4517c0
jmp 0x4517cf
mov dword [esi + 0x1c], edx
cmp eax, 0x7ffffff0
jae 0x451d0e
mov ebx, eax
or ebx, 0xf
inc ebx
push ebx
mov dword [esi + 0x18], eax
call fcn.0049890c
add esp, 4
mov dword [edi], eax
or ebx, 0x80000000
mov dword [edi + 8], ebx
mov ecx, dword [esi + 0x18]
mov dword [edi + 4], ecx
mov edi, eax
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
cmp edi, edx
ja 0x4517cf
mov ecx, eax
add eax, edi
inc eax
cmp eax, edx
mov eax, ecx
ja 0x451c41
inc eax
push eax
push edx
push edi
call fcn.0049b920
add esp, 0xc
mov ecx, dword [esi + 0x14]
call fcn.0046c7f0
mov esp, dword [esi + 4]
test byte [0x4e53f8], 0x19
mov edi, dword [esi + 0xc]
jne 0x451bfe
cmp dword [edi + 4], 3
jne 0x4518dc
cmp byte [0x5f3c94], 0
jne 0x4518dc
mov byte [0x5f3c94], 1
mov eax, dword [0x5f3c9c]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x451c5f
mov ecx, ebx
lea ebx, [esi + 0x48]
push ebx
call fcn.00411c50
cmp byte [esi + 0x53], 0
jns 0x451849
mov ebx, dword [esi + 0x48]
add ebx, dword [edi + 0x90]
mov eax, edi
mov edi, dword [edi + 0x94]
mov eax, dword [eax + 0x98]
test edi, edi
je 0x45187c
push 0x5c
push edi
mov dword [esi + 4], eax
call fcn.0049c130
add esp, 8
lea ecx, [eax + 1]
test eax, eax
mov eax, dword [esi + 4]
cmove ecx, edi
jmp 0x45187e
xor ecx, ecx
lea edi, [esi + 0x34]
push ebx
push eax
push ecx
push str._s:_d:__s
push edi
call fcn.0045f5d0
add esp, 0x14
cmp byte [esi + 0x53], 0
jns 0x4518a3
push dword [esi + 0x48]
call fcn.0049893c
add esp, 4
movzx eax, byte [esi + 0x3f]
test al, al
jns 0x4518b1
mov edi, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
push eax
push edi
push dword [0x5f3c98]
call fcn.004727f0
add esp, 0xc
cmp byte [esi + 0x3f], 0
jns 0x4518d2
push dword [esi + 0x34]
call fcn.0049893c
add esp, 4
mov byte [0x5f3c94], 0
mov edi, dword [esi + 0xc]
mov ecx, dword [0x5f3c6c]
test ecx, ecx
je 0x45192c
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ebx, dword [edi + 0x90]
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0x98]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x94]
mov dword [esi + 0x14], eax
call dword [section..00cfg]
lea eax, [esi + 0x28]
push eax
push ebx
mov ebx, dword [esi + 0x10]
push edi
mov edi, dword [esi + 0xc]
push dword [esi + 0x14]
push dword [esi + 4]
call ecx
add esp, 0x14
test al, al
jne 0x451b8f
mov eax, dword [0x4e5018]
test al, 2
je 0x45194f
cmp byte [esi + 0x33], 0
jns 0x451941
mov eax, dword [esi + 0x28]
mov dword [esi + 8], eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4e5018]
test al, 4
jne 0x45195e
cmp dword [edi + 4], 2
jl 0x4519a7
cmp eax, 1
ja 0x4519a7
movzx ebx, byte [esi + 0x33]
test bl, bl
cmovs ebx, dword [esi + 0x2c]
lea ecx, [esi + 0x28]
cmovs ecx, dword [esi + 0x28]
mov dword [esi + 8], ecx
test ebx, ebx
je 0x4519a7
xor edi, edi
nop dword [eax + eax]
mov eax, ebx
sub eax, edi
mov ecx, dword [esi + 8]
add ecx, edi
push eax
push ecx
push 2
call fcn.004affe1
add esp, 0xc
test eax, eax
js 0x45199f
add edi, eax
cmp edi, ebx
jb 0x451980
mov eax, dword [0x4e5018]
mov edi, dword [esi + 0xc]
test al, 1
je 0x4519e0
call fcn.00450f40
test al, al
je 0x4519e0
mov dword [esi + 0x48], 0xffffffff
movzx eax, byte [esi + 0x33]
test al, al
cmovs eax, dword [esi + 0x2c]
lea ecx, [esi + 0x28]
cmovs ecx, dword [esi + 0x28]
push 0
lea edx, [esi + 0x48]
push edx
push eax
push ecx
push dword [0x5f3c78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 4], 3
mov ebx, dword [esi + 0x10]
jne 0x451b8f
mov ecx, dword [0x5f3ca0]
test ecx, ecx
je 0x451a11
movzx eax, byte [esi + 0x33]
test al, al
jns 0x451a07
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
jmp 0x451a0a
lea edx, [esi + 0x28]
push eax
push edx
call fcn.00456110
push 0x400
push 0xff
lea eax, [esi + 0x48]
push eax
call fcn.0049bea0
add esp, 0xc
cmp byte [esi + 0x33], 0
jns 0x451a32
mov eax, dword [esi + 0x28]
jmp 0x451a35
lea eax, [esi + 0x28]
push 0x400
push eax
lea ebx, [esi + 0x48]
push ebx
call fcn.00447440
add esp, 0xc
push ebx
call fcn.00410910
add esp, 4
mov eax, dword [0x5f3c90]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x451ca2
mov eax, dword [0x5f3c88]
cmp eax, dword [0x5f3c8c]
je 0x451d13
mov dword [esi + 0x24], 0xffffffff
mov eax, dword [0x5f3c90]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
mov ebx, dword [esi + 0x10]
jg 0x451cd8
mov eax, dword [0x5f3c8c]
test eax, eax
mov ecx, dword [0x5f3c84]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x451d16
shl eax, 2
add eax, dword [0x5f3c80]
lea ecx, [esi + 0x24]
push eax
call fcn.004462e0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x451b87
cmp byte [esi + 0x33], 0
jns 0x451aee
mov ebx, dword [esi + 0x28]
jmp 0x451af1
lea ebx, [esi + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov edi, dword [esi + 0x20]
add ebx, edi
je 0x451d19
push ebx
mov dword [esi + 0x18], ebx
call fcn.004b3990
add esp, 4
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0x90]
sub edi, ecx
mov ebx, dword [esi + 4]
add ebx, ecx
mov ecx, dword [edx + 0x94]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 0x98]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
mov eax, 1
mov edi, dword [esi + 8]
lock xadd dword [edi], eax
test eax, eax
jle 0x451d1c
mov ebx, dword [esi + 0x24]
mov ecx, dword [ebx + 4]
call dword [section..00cfg]
lea eax, [esi + 0x40]
lea edx, [esi + 0x34]
push eax
push edx
push dword [esi + 0x14]
push dword [esi + 4]
push ebx
call ecx
add esp, 0x14
lock dec dword [edi]
mov ebx, dword [esi + 0x10]
jne 0x451b84
push edi
call fcn.00446220
add esp, 4
mov edi, dword [esi + 0xc]
lea ecx, [esi + 0x24]
call fcn.004462b0
cmp byte [esi + 0x33], 0
jns 0x451ba0
push dword [esi + 0x28]
call fcn.0049893c
add esp, 4
lea ecx, [edi + 0x9c]
call fcn.004727b0
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [edi + eax + 8], 0x4cf838
mov dword [edi + 0xc], 0x4cf840
cmp byte [edi + 0x37], 0
jns 0x451bd1
push dword [edi + 0x2c]
call fcn.0049893c
add esp, 4
add edi, 0x40
mov ecx, ebx
call fcn.0041059e
mov ecx, ebx
call fcn.00410910
mov ecx, edi
call fcn.00410594
mov ecx, dword [esi + 0x448]
xor ecx, ebp
call fcn.00499333
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x34], edi
lea eax, [esi + 0x28]
mov dword [esi + 0x38], eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
sub esp, 8
movsd xmm0, qword [esi + 0x48]
movsd qword [esp], xmm0
lea edx, [esi + 0x34]
mov ecx, str.LogMessage
call fcn.004520d0
add esp, 8
cmp dword [edi + 4], 3
je 0x451800
jmp 0x4518dc
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xec
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00414fd8
push 0x5f3c9c
call fcn.004989b7
add esp, 4
cmp dword [0x5f3c9c], 0xffffffff
jne 0x451835
push 0x400
push str.LOG_FATAL
call fcn.004727d0
add esp, 8
mov dword [0x5f3c98], eax
push 0x5f3c9c
call fcn.00498a2d
add esp, 4
jmp 0x451835
push 0x5f3c90
call fcn.004989b7
add esp, 4
cmp dword [0x5f3c90], 0xffffffff
jne 0x451a71
xorps xmm0, xmm0
movups xmmword [0x5f3c80], xmm0
push 0x5f3c90
call fcn.00498a2d
add esp, 4
jmp 0x451a71
push 0x5f3c90
call fcn.004989b7
add esp, 4
cmp dword [0x5f3c90], 0xffffffff
jne 0x451aad
xorps xmm0, xmm0
movups xmmword [0x5f3c80], xmm0
push 0x5f3c90
call fcn.00498a2d
add esp, 4
jmp 0x451aad
call fcn.004ad590
int3
int3
int3
int3