Function at 0x19ef7b23
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x1c]
sub esp, 0x2c
test edx, edx
jne 0x19ef7b39
xor al, al
jmp 0x19ef7f6e
push esi
push edi
mov eax, edx
push 2
lea edi, [eax + 2]
pop esi
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x19ef7b43
movzx ecx, word [edx]
sub eax, edi
sar eax, 1
push 0x20
pop edi
mov dword [ebp - 0x14], eax
mov eax, edx
cmp cx, di
je 0x19ef7b8d
and dword [ebp - 0xc], 0
test cx, cx
je 0x19ef7b94
cmp word [eax], di
jne 0x19ef7b78
add eax, esi
cmp word [eax], di
je 0x19ef7b6f
jmp 0x19ef7b7d
inc dword [ebp - 0xc]
add eax, esi
cmp word [eax], 0
jne 0x19ef7b6a
cmp eax, edx
jbe 0x19ef7b94
cmp word [eax - 2], di
jne 0x19ef7b94
xor al, al
jmp 0x19ef7f6c
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
cmp edi, dword [ebx + 0x18]
jbe 0x19ef7bbb
push esi
mov eax, edi
shl eax, 2
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.19e719a3
test eax, eax
je 0x19ef7e1d
mov dword [ebx + 0x18], edi
or eax, 0xffffffff
xor edx, edx
div dword [ebp - 0xc]
mov esi, dword [ebp - 0xc]
imul esi, edi
mov dword [ebp - 0x1c], esi
cmp edi, eax
ja 0x19ef7e1d
cmp esi, dword [ebx + 8]
jbe 0x19ef7c01
push 8
push esi
push ebx
call fcn.19e719a3
test eax, eax
je 0x19ef7e1d
push 4
push esi
lea eax, [ebx + 4]
push eax
call fcn.19e719a3
test eax, eax
je 0x19ef7e1d
mov dword [ebx + 8], esi
cmp edi, dword [ebx + 0x10]
jbe 0x19ef7c1d
push 4
push edi
lea eax, [ebx + 0xc]
push eax
call fcn.19e719a3
test eax, eax
je 0x19ef7e1d
mov dword [ebx + 0x10], edi
mov ecx, dword [ebp + 0x1c]
movzx eax, word [ecx]
push eax
push dword [ebp + 8]
add ecx, 2
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], ecx
call fcn.19eda681
test eax, eax
je 0x19ef7e1d
push dword [ebp + 0x14]
mov edi, dword [ebx]
push dword [ebp - 4]
mov esi, dword [ebx + 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.19ef72c3
fst qword [edi]
push dword [ebp - 4]
fstp qword [ebp - 0x24]
and dword [esi], 0
push dword [ebp + 8]
add edi, 8
add esi, 4
call fcn.19eda725
fldz
cmp ax, 0xffff
je 0x19ef7ccb
xor eax, eax
fstp st(0)
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], eax
jbe 0x19ef7ce8
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.19ef7333
fmul qword [ebp - 0x24]
push 3
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_ldexp]
fstp qword [ebp - 0x24]
add esp, 0xc
fld qword [ebp - 0x24]
fstp qword [edi]
add edi, 8
mov dword [esi], 1
add esi, 4
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jb 0x19ef7c83
jmp 0x19ef7ce8
cmp dword [ebp + 0x14], 1
jbe 0x19ef7ce6
mov eax, dword [ebp + 0x14]
fst qword [ebp - 0x24]
dec eax
fst qword [edi]
and dword [esi], 0
add edi, 8
add esi, 4
dec eax
jne 0x19ef7cd8
fstp st(0)
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx]
dec ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
je 0x19ef7e04
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add dword [ebp + 0xc], 2
mov dword [ebp - 4], eax
cmp ax, 0x20
je 0x19ef7cfd
push eax
push dword [ebp + 8]
call fcn.19eda681
test eax, eax
je 0x19ef7e1d
fldz
and dword [esi], 0
mov eax, dword [ebp - 8]
fst qword [ebp - 0x24]
add dword [ebp - 8], 8
fstp qword [edi]
fld qword [eax]
add esi, 4
xor eax, eax
fstp qword [ebp - 0x2c]
inc eax
add edi, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], eax
jbe 0x19ef7df8
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.19eda725
cmp ax, 0xffff
je 0x19ef7d86
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.19ef7333
fmul qword [ebp - 0x24]
push 3
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_ldexp]
add esp, 0xc
jmp 0x19ef7d88
fldz
push dword [ebp + 0x14]
fstp qword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.19ef72c3
fmul qword [ebp - 0x2c]
push 3
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_ldexp]
fcom qword [ebp - 0x24]
add esp, 0xc
fnstsw ax
test ah, 5
jp 0x19ef7dc9
fstp st(0)
mov dword [esi], 1
fld qword [ebp - 0x24]
jmp 0x19ef7dcf
mov dword [esi], 3
mov eax, dword [ebp - 8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
add dword [ebp - 8], 8
fstp qword [edi]
add esi, 4
fld qword [eax]
add edi, 8
inc dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jb 0x19ef7d4c
dec dword [ebp - 0x10]
jne 0x19ef7cfd
mov ecx, dword [ebp - 0x18]
fldz
fcomp qword [ebp - 0x24]
fnstsw ax
test ah, 0x44
jnp 0x19ef7e1d
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x1c]
cmp dword [eax + edx*4 - 4], 0
jne 0x19ef7e24
xor al, al
jmp 0x19ef7f6b
sub dword [ebp + 0xc], 2
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
lea edi, [eax - 1]
mov dword [ebp + 0x10], edi
test edi, edi
jl 0x19ef7f61
imul ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 4]
and dword [ebp - 0xc], 0
add eax, edi
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x1c]
jb 0x19ef7e78
sub eax, dword [ebp + 0x1c]
sar eax, 1
cmp eax, dword [ebp - 0x14]
jb 0x19ef7e72
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0xc]
mov dword [ecx + edi*4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.19ef7ad2
mov ecx, dword [ebp - 0x1c]
sub ecx, 0
movzx eax, ax
je 0x19ef7f36
dec ecx
je 0x19ef7f14
dec ecx
je 0x19ef7f72
dec ecx
jne 0x19ef7f59
push eax
push dword [ebp + 8]
call fcn.19ef737f
movzx ax, al
push 2
mov word [esi], ax
mov eax, dword [ebp - 0xc]
pop edi
add esi, edi
test ax, ax
jbe 0x19ef7ec9
mov word [esi], ax
add esi, edi
sub dword [ebp + 0xc], edi
mov eax, 0xffff
mov word [esi], ax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add esi, edi
dec dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp ax, 0x20
jne 0x19ef7f09
push 0x20
push dword [ebp + 8]
call fcn.19eda61d
mov word [esi], ax
add esi, edi
sub dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
mov dword [ebp - 4], eax
cmp ax, 0x20
je 0x19ef7ef7
mov eax, dword [ebp + 0x14]
sub dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
jmp 0x19ef7f59
push eax
push dword [ebp + 8]
call fcn.19eda64f
mov word [esi], ax
mov eax, dword [ebp - 0xc]
inc esi
inc esi
test ax, ax
jbe 0x19ef7f2f
mov word [esi], ax
inc esi
inc esi
mov eax, 0xffff
jmp 0x19ef7f50
push eax
push dword [ebp + 8]
call fcn.19ef737f
movzx ax, al
mov word [esi], ax
mov eax, dword [ebp - 0xc]
inc esi
inc esi
test ax, ax
jbe 0x19ef7f55
mov word [esi], ax
inc esi
inc esi
dec edi
mov dword [ebp + 0x10], edi
test edi, edi
jge 0x19ef7e4b
mov eax, 0xffff
mov word [esi], ax
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 0x18
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3