Function at 0x404fec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0x184
mov ebx, str._s._s._d
mov esi, dword [ebp + 0x14]
mov edi, eax
mov dword [esp + 0x160], edx
mov dword [esp + 0x164], ecx
mov dword [esp + 0x168], esi
mov dword [esp + 0x15c], ebx
call fcn.004021f0
movq xmm0, qword [0x431860]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x160]
movq xmm1, qword [eax]
por xmm1, xmm0
movq qword [esp], xmm1
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
call fcn.00416be3
mov edx, dword [0x446780]
mov dword [esp + 0x170], edx
mov ecx, dword [0x446784]
test edx, edx
mov edx, dword [0x446788]
je 0x4052f7
cmp ecx, edx
jge 0x4052f7
push edi
push 1
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edx
call fcn.00418526
mov edx, dword [esp + 0x180]
mov esi, eax
mov ecx, dword [esp + 0x17c]
add esp, 8
test esi, esi
je 0x40520f
mov eax, dword [0x44678c]
inc eax
mov dword [esp + 0x20], eax
mov dword [0x44678c], eax
test edx, edx
jle 0x4050e7
mov eax, dword [0x446790]
inc ecx
xor ebx, ebx
cmp dword [eax + ebx*4], 0
je 0x405148
inc ebx
cmp ebx, edx
jl 0x4050dc
push 2
call fcn.00416e97
mov ebx, eax
add esp, 4
mov eax, dword [str.MSG:_Allocation_buffer_overflow_n]
mov esi, 0x431494
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
call fcn.004021f0
lea edx, [esp + 0x24]
movq xmm0, qword [eax]
movq qword [esp], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call fcn.00416b39
xor eax, eax
call fcn.00404c20
push 2
mov dword [0x447e20], 0xfffffffe
call fcn.004171d6
mov edx, dword [esp + 0x170]
mov dword [0x446784], ecx
mov dword [eax + ebx*4], esi
mov dword [edx + ebx*4], edi
mov edx, dword [0x446794]
cmp ecx, edx
cmovg edx, ecx
lea ecx, [esp + 0x48]
mov dword [0x446794], edx
mov edx, dword [0x446798]
mov edx, dword [edx + ebx*4]
test cl, 3
je 0x40518d
mov al, byte [ecx]
inc ecx
test al, al
mov byte [edx], al
je 0x405192
inc edx
test cl, 3
jne 0x40517e
call fcn.004096b0
push 0
call fcn.004185b4
add esp, 4
mov ecx, dword [0x44679c]
mov dword [ecx + ebx*8], eax
mov eax, edi
mov dword [ecx + ebx*8 + 4], edx
mov ecx, dword [0x4467a0]
mov edx, dword [esp + 0x20]
mov dword [ecx + ebx*4], edx
cdq
mov ebx, dword [0x446770]
mov eax, edx
add ebx, edi
mov ecx, ebx
adc eax, dword [0x446774]
sub ecx, dword [0x446778]
mov edx, eax
mov dword [0x446770], ebx
mov dword [0x446774], eax
sbb edx, dword [0x44677c]
jl 0x4051ea
or ecx, edx
jne 0x4051f5
mov ebx, dword [0x446778]
mov eax, dword [0x44677c]
mov dword [0x446778], ebx
mov dword [0x44677c], eax
mov eax, esi
add esp, 0x184
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
call fcn.00416e97
mov ebx, eax
add esp, 4
mov esi, dword [str.MSG:_Cant_allocate__d_bytes__total_allocation_]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
call fcn.004021f0
lea edx, [esp + 0x34]
movq xmm0, qword [eax]
movq qword [esp], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call fcn.00416b39
push 2
call fcn.00416e97
mov ebx, eax
add esp, 4
movq xmm0, qword [0x446770]
mov esi, str._I64d
mov dword [esp + 0x20], esi
movq qword [esp + 0x24], xmm0
call fcn.004021f0
lea edx, [esp + 0x24]
movq xmm0, qword [eax]
movq qword [esp], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call fcn.00416b39
push 2
call fcn.00416e97
mov ebx, eax
add esp, 4
mov esi, str._n_______s__n
lea eax, [esp + 0x48]
mov dword [eax - 8], eax
mov dword [eax - 0xc], esi
call fcn.004021f0
lea edx, [esp + 0x40]
movq xmm0, qword [eax]
movq qword [esp], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call fcn.00416b39
xor eax, eax
add esp, 0x184
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x170]
mov eax, edx
mov dword [esp + 0x154], esi
mov esi, dword [0x446790]
mov dword [esp + 0x150], esi
mov esi, dword [0x44679c]
sar eax, 0x1f
mov dword [esp + 0x14c], esi
not eax
mov esi, dword [0x4467a0]
and eax, edx
mov dword [esp + 0x148], esi
cmp ecx, eax
mov esi, dword [0x446798]
mov dword [esp + 0x44], esi
mov esi, dword [0x4467a4]
mov dword [esp + 0x40], esi
lea esi, [ecx + 0xfa0]
cmovge eax, esi
mov dword [esp + 0x158], eax
cmp eax, edx
jle 0x405090
push 4
push dword [esp + 0x15c]
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edx
call fcn.00418526
mov edx, dword [esp + 0x180]
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x178], eax
push 4
push dword [esp + 0x164]
mov dword [esp + 0x184], ecx
mov esi, eax
mov dword [0x446780], esi
mov dword [esp + 0x188], edx
call fcn.00418526
mov edx, dword [esp + 0x188]
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x4c], eax
push 8
push dword [esp + 0x16c]
mov dword [esp + 0x18c], ecx
mov esi, eax
mov dword [0x446790], esi
mov dword [esp + 0x190], edx
call fcn.00418526
mov edx, dword [esp + 0x190]
mov ecx, dword [esp + 0x18c]
mov dword [esp + 0x50], eax
push 4
push dword [esp + 0x174]
mov dword [esp + 0x194], ecx
mov esi, eax
mov dword [0x44679c], esi
mov dword [esp + 0x198], edx
call fcn.00418526
mov edx, dword [esp + 0x198]
mov ecx, dword [esp + 0x194]
mov dword [esp + 0x54], eax
mov esi, eax
mov dword [0x4467a0], esi
mov esi, dword [esp + 0x178]
shl esi, 8
push esi
push 1
mov dword [esp + 0x19c], ecx
mov dword [esp + 0x1a0], edx
call fcn.00418526
mov edx, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x58], eax
push 4
push dword [esp + 0x184]
mov dword [esp + 0x1a4], ecx
mov esi, eax
mov dword [0x4467a4], esi
mov dword [esp + 0x1a8], edx
call fcn.00418526
mov edx, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x5c], eax
add esp, 0x30
mov esi, eax
mov dword [0x446798], esi
cmp dword [esp + 0x170], 0
je 0x405724
cmp dword [esp + 0x3c], 0
je 0x405724
cmp dword [esp + 0x38], 0
je 0x405724
cmp dword [esp + 0x2c], 0
je 0x405724
cmp dword [esp + 0x30], 0
je 0x405724
cmp dword [esp + 0x158], 0
jle 0x405609
cmp dword [esp + 0x158], 4
jl 0x405717
mov ebx, eax
and ebx, 0xf
je 0x40551f
test bl, 3
jne 0x405717
neg ebx
add ebx, 0x10
shr ebx, 2
lea esi, [ebx + 4]
cmp esi, dword [esp + 0x158]
jg 0x405717
mov esi, dword [esp + 0x158]
mov eax, esi
sub eax, ebx
and eax, 3
neg eax
add eax, esi
mov dword [esp + 0x28], eax
test ebx, ebx
jbe 0x405569
mov dword [esp + 0x20], edi
xor eax, eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [edi + eax*4], esi
inc eax
add esi, 0x100
cmp eax, ebx
jb 0x405557
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
shl ebx, 8
mov eax, dword [esp + 0x30]
movdqu xmm1, xmmword [0x431810]
lea esi, [eax + ebx]
lea eax, [eax + ebx + 0x100]
mov ebx, dword [esp + 0x24]
movd xmm0, esi
lea esi, [eax + 0x100]
movd xmm2, eax
add eax, 0x200
punpckldq xmm0, xmm2
movd xmm4, esi
movd xmm3, eax
punpckldq xmm4, xmm3
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
punpcklqdq xmm0, xmm4
movdqu xmmword [eax + ebx*4], xmm0
add ebx, 4
paddd xmm0, xmm1
cmp ebx, esi
jb 0x4055b9
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
mov esi, eax
shl esi, 8
add dword [esp + 0x30], esi
cmp eax, dword [esp + 0x158]
jae 0x405609
mov esi, eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x158]
mov dword [edi + esi*4], eax
inc esi
add eax, 0x100
cmp esi, ebx
jb 0x4055f8
mov edi, dword [esp + 0x20]
test ecx, ecx
je 0x405705
test edx, edx
jle 0x4056b2
mov dword [esp + 0x20], edi
xor esi, esi
mov dword [esp + 0x174], ecx
mov ebx, edx
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x38]
movq xmm0, qword [eax + esi*8]
mov eax, dword [esp + 0x154]
movq qword [ecx + esi*8], xmm0
mov ecx, dword [esp + 0x170]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + esi*4]
cmp byte [eax], 0
je 0x4056a2
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + esi*4]
mov edx, dword [eax + esi*4]
test cl, 3
je 0x40569d
mov al, byte [ecx]
inc ecx
test al, al
mov byte [edx], al
je 0x4056a2
inc edx
test cl, 3
jne 0x40568e
call fcn.004096b0
inc esi
cmp esi, ebx
jl 0x40562c
mov ecx, dword [esp + 0x174]
mov edi, dword [esp + 0x20]
push dword [esp + 0x154]
mov dword [esp + 0x178], ecx
call fcn.0041850b
push dword [esp + 0x154]
call fcn.0041850b
push dword [esp + 0x154]
call fcn.0041850b
push dword [esp + 0x154]
call fcn.0041850b
push dword [esp + 0x50]
call fcn.0041850b
push dword [esp + 0x58]
call fcn.0041850b
mov ecx, dword [esp + 0x18c]
add esp, 0x18
mov edx, dword [esp + 0x158]
mov dword [0x446788], edx
jmp 0x405090
mov dword [esp + 0x28], 0
jmp 0x4055cd
push 2
call fcn.00416e97
mov ebx, eax
add esp, 4
mov esi, dword [str.MSG:_Cant_create_allocation_tables_with__d_entries_n]
mov eax, dword [esp + 0x158]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
call fcn.004021f0
lea edx, [esp + 0x30]
movq xmm0, qword [eax]
movq qword [esp], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call fcn.00416b39
mov ebx, dword [0x447e24]
test ebx, ebx
je 0x4057ba
mov esi, dword [str.MSG:_Cant_create_allocation_tables_with__d_entries_n]
mov eax, dword [esp + 0x158]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
call fcn.004021f0
lea edx, [esp + 0x24]
movq xmm0, qword [eax]
movq qword [esp], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call fcn.00416b39
push 1
call fcn.004171d6
nop dword [eax + eax]
nop dword [eax]