Function at 0x401510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x20000
push 0
call fcn.00403146
push eax
call fcn.00404f1f
add esp, 8
push eax
call fcn.00404d40
add esp, 8
push 0x20000
push 1
call fcn.00403146
push eax
call fcn.00404f1f
add esp, 8
push eax
call fcn.00404d40
add esp, 8
push 0x20000
push 2
call fcn.00403146
push eax
call fcn.00404f1f
add esp, 8
push eax
call fcn.00404d40
mov ebx, dword [ebp + 8]
add esp, 8
cmp ebx, 2
jl 0x4018a6
mov edx, dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0
mov ecx, 0x419be4
mov eax, edx
mov si, word [eax]
cmp si, word [ecx]
jne 0x4015ca
test si, si
je 0x4015c6
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x4015ca
add eax, 4
add ecx, 4
test si, si
jne 0x4015a4
xor eax, eax
jmp 0x4015cf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401685
cmp ebx, 3
jl 0x401685
cmp ebx, 4
jg 0x4018ad
push 0xc
push 3
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], eax
call int.00403073
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x4018c1
mov dword [eax], 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], 3
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 2
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 8]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 3
mov eax, dword [ebp - 8]
cmp ebx, 4
jne 0x401665
mov ecx, dword [edi + 0xc]
mov dword [eax + 0x1c], ecx
lea ecx, [ebp - 0x18]
call fcn.00401280
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018eb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov dword [eax + 0x1c], 0x419c88
call fcn.00401280
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018eb
mov esp, ebp
pop ebp
ret
mov ecx, 0x419c98
mov eax, edx
nop dword [eax]
mov si, word [eax]
cmp si, word [ecx]
jne 0x4016b6
test si, si
je 0x4016b2
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x4016b6
add eax, 4
add ecx, 4
test si, si
jne 0x401690
xor eax, eax
jmp 0x4016bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401728
cmp ebx, 3
jl 0x401728
push 0xc
push 2
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call int.00403073
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x4018c8
mov dword [eax], 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], 5
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 4
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 8]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x18]
call fcn.00401280
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018eb
mov esp, ebp
pop ebp
ret
mov ecx, 0x419ca0
mov eax, edx
nop
mov si, word [eax]
cmp si, word [ecx]
jne 0x401756
test si, si
je 0x401752
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x401756
add eax, 4
add ecx, 4
test si, si
jne 0x401730
xor eax, eax
jmp 0x40175b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4017a0
push 0xc
push 4
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], eax
call int.00403073
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x4018cf
lea ecx, [ebp - 0x18]
call fcn.004013d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018eb
mov esp, ebp
pop ebp
ret
mov eax, 0x419cac
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4017cb
test cx, cx
je 0x4017c7
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4017cb
add edx, 4
add eax, 4
test cx, cx
jne 0x4017a5
xor eax, eax
jmp 0x4017d0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4018a6
lea eax, [ebx - 3]
cmp eax, 3
ja 0x4018a6
push dword [edi + 8]
lea esi, [edi + 8]
call fcn.00403a09
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [eax - 1]
cmp ecx, 0xe
ja 0x4018d6
movaps xmm0, xmmword [0x4176c0]
lea eax, [ebx - 2]
paddd xmm0, xmmword [str._nextafPX_a]
lea ecx, [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x1c], eax
mov ebx, 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.00401140
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jb 0x40188a
lea ecx, [ebp - 0x38]
sub ecx, edi
lea edx, [ebx + 0xb]
mov dword [ebp - 0x1c], ecx
lea edi, [eax - 1]
nop dword [eax + eax]
mov eax, dword [esi + 4]
lea esi, [esi + 4]
cmp word [eax], 0x2d
je 0x401885
mov eax, dword [ebp - 8]
inc ebx
mov ecx, dword [ecx + esi]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
mov dword [edx + eax + 4], ecx
add edx, 0xc
mov ecx, dword [ebp - 0x1c]
sub edi, 1
jne 0x401860
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.00401280
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
call fcn.00401070
push str.E11_1__s
call fcn.00401040
mov ecx, dword [edi]
add esp, 4
call fcn.00401070
push 4
call fcn.0040305d
push 4
call fcn.0040305d
push 4
call fcn.0040305d
push 0x419cb4
call fcn.00401040
mov ecx, dword [edi]
add esp, 4
call fcn.00401070
int3