Function at 0x1028f7f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x104e6584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x104f677b
call fcn.1015f0d9
mov dword [ebp - 8], 0x40000000
mov dword [ebp - 0x10], 0x40000000
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx - 1]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cdq
idiv dword [ecx + 8]
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cdq
idiv dword [ecx + 8]
test edx, edx
je 0x1028f85d
push 0
call dword [sym.imp.ucrtbased.dll_exit]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp ecx, dword [edx]
jg 0x1028f913
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1028fb50
add esp, 0x14
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x1028f8c4
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
jge 0x1028f8c2
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
jmp 0x1028f8fc
mov eax, dword [ebp - 0x30]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 4]
jg 0x1028f8fc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
jl 0x1028f8ea
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x10]
jne 0x1028f8fc
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 8]
jge 0x1028f8fc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
jmp 0x1028f86f
cmp dword [ebp - 0x2c], 0
jne 0x1028f925
mov dword [ebp - 0x84], 0
jmp 0x1028f933
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
movzx edx, word [ecx]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 1
jne 0x1028fa68
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
cmp ecx, dword [ebp + 0x10]
jge 0x1028f97a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
jmp 0x1028f964
cmp dword [ebp - 0x28], 0
je 0x1028fa68
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
jns 0x1028f99a
push 0
call dword [sym.imp.ucrtbased.dll_exit]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
cmp edx, dword [ebp - 0x38]
jg 0x1028f9bc
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
jmp 0x1028f99a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
cmp edx, dword [ebp - 0x38]
jle 0x1028f9d5
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, dword [ebp - 0x38]
jle 0x1028f9dd
push 0
call dword [sym.imp.ucrtbased.dll_exit]
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1028fb50
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 4]
jge 0x1028fa5a
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x10]
jg 0x1028fa5a
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x10]
jl 0x1028fa32
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 8]
jl 0x1028fa32
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 8]
jne 0x1028fa5a
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xc]
jge 0x1028fa5a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x10]
jle 0x1028fa48
push 0
call dword [sym.imp.ucrtbased.dll_exit]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
jmp 0x1028f97a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015ebf2
mov esp, ebp
pop ebp
ret