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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
test dl, 3
je 0x45aef9
mov eax, dword [edi + 0x38]
cmp esi, eax
jge 0x45adc5
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x45aef9
mov eax, dword [edi + 0x40]
cmp esi, eax
jl 0x45aef9
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x60]
push eax
call fcn.0045f8b0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x45adfb
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x45adf3
mov eax, dword [esi]
mov word [eax + ecx], 0xa
jmp 0x45ae0c
push 0xa
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
mov ecx, esi
call fcn.0042d360
movups xmm0, xmmword [esi]
mov dword [ebp - 0x34], 2
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x45ae70
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45ae66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b0e5
push edx
push ecx
call fcn.00479e95
add esp, 8
mov eax, dword [edi + 0x38]
mov esi, dword [ebp - 0x3c]
cmp esi, eax
jl 0x45ae8c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x45aebf
mov eax, dword [edi + 0x40]
cmp esi, eax
jl 0x45aebf
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004a7e6c
push dword [ebp - 0x30]
call fcn.004a81c2
add esp, 0x14
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x45aef3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45aee9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b0ea
push edx
push ecx
call fcn.00479e95
add esp, 8
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
test dl, 4
je 0x45af41
lea esi, [edi + 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x45af1c
lock inc dword [eax + 4]
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x5c]
push esi
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
or ecx, 1
test eax, eax
je 0x45af47
cmp dword [eax], 0xffffffff
je 0x45af47
mov byte [ebp - 0x29], 1
jmp 0x45af4b
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x29], 0
test cl, 1
je 0x45af78
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x45af78
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x45af78
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x45af78
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x29], 0
je 0x45b0c8
mov eax, dword [edi + 0x30]
cmp dword [ebp - 0x3c], eax
jl 0x45b0be
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x28]
mov dword [ebp - 4], 1
cmp dword [eax + 4], 0x3ffffff
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
je 0x45b0ef
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x44], 0
call fcn.00479ea3
mov edx, dword [ebp - 0x38]
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov ecx, dword [edx]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x18]
movq xmm0, qword [edx + 4]
movq qword [esi + 0xc], xmm0
mov eax, dword [edx + 0xc]
mov dword [esi + 0x14], eax
lea eax, [edx + 0x10]
push eax
call fcn.0042dfe0
mov ecx, dword [ebp - 0x38]
lea edx, [edi + 0x28]
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 1
inc dword [edx + 4]
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov dword [eax], esi
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x45b0ae
mov eax, dword [edi + 0x34]
cmp dword [edi + 0x2c], eax
jbe 0x45b0ae
nop dword [eax]
mov eax, dword [edx]
mov esi, dword [eax]
mov ecx, dword [esi]
dec dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x2c]
cmp ecx, 0x10
jb 0x45b084
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x45b07a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b0e5
mov eax, edx
push ecx
push eax
call fcn.00479e95
add esp, 8
push 0x40
push esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
call fcn.00479e95
mov eax, dword [edi + 0x34]
add esp, 8
cmp dword [edi + 0x2c], eax
jbe 0x45b0ae
lea edx, [edi + 0x28]
jmp 0x45b040
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x38]
mov ecx, edi
call fcn.004598c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8
call fcn.0049b19a
call fcn.0049b19a
push str.list_too_long
call fcn.004764e2
int3