Function at 0x10069950
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov esi, edx
mov ebp, ecx
mov ecx, dword [esp + 0x74]
test ecx, ecx
mov dword [esp + 0x58], ecx
jle 0x10069f9b
mov dword [esp + 0x20], esi
mov eax, ecx
and eax, 3
mov edx, ecx
xor ecx, ecx
cmp edx, 4
jb 0x100699ae
mov edx, dword [esp + 0x74]
and edx, 0xfffffffc
mov ecx, dword [esp + 0x20]
lea esi, [ecx + 0x3c]
xor ecx, ecx
nop dword [eax]
mov dword [esi - 0x30], ecx
lea edi, [ecx + 1]
mov dword [esi - 0x20], edi
lea edi, [ecx + 2]
mov dword [esi - 0x10], edi
lea edi, [ecx + 3]
mov dword [esi], edi
add ecx, 4
add esi, 0x40
cmp ecx, edx
jne 0x10069990
test eax, eax
je 0x100699db
mov edx, ecx
shl edx, 4
mov esi, dword [esp + 0x20]
add edx, esi
add edx, 0xc
shl eax, 4
xor esi, esi
nop word cs:[eax + eax]
mov dword [edx + esi], ecx
inc ecx
add esi, 0x10
cmp eax, esi
jne 0x100699d0
push 0x1006d190
push 0x10
mov edi, dword [esp + 0x7c]
push edi
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov eax, edi
add esp, 0x10
test edi, edi
jle 0x10069fb4
lea ecx, [ebp + 0x18]
mov dword [esp + 0x44], ecx
xor ecx, ecx
mov dword [esp + 0x54], ebp
jmp 0x10069a21
mov dword [esi + edx + 8], 0
inc ecx
cmp ecx, eax
je 0x10069f4a
mov edx, ecx
shl edx, 4
movzx edi, word [esi + edx + 4]
mov dword [esp + 0x50], edi
test edi, edi
je 0x10069a10
movzx ebx, word [esi + edx + 6]
mov edi, ebx
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x10069a10
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x50]
lea esi, [eax + ecx]
dec esi
mov eax, esi
cdq
idiv ecx
sub esi, edx
mov eax, esi
cdq
idiv ecx
test edx, edx
jne 0x10069fcb
mov edx, dword [ebp]
mov eax, dword [ebp + 0x18]
movzx edi, word [eax]
movzx ecx, di
lea ebx, [esi + ecx]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x1c], ebx
cmp ebx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
jle 0x10069abc
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0x40000000
mov dword [esp + 0xc], 0x40000000
mov dword [esp], 0
cmp eax, 1
je 0x10069ca5
jmp 0x10069e70
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x24], 0x40000000
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], edx
mov dword [esp + 0xc], 0x40000000
jmp 0x10069b34
mov eax, dword [esp + 0xc]
cmp esi, eax
cmovl eax, esi
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 8]
cmovl ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
movzx edi, word [esp + 0x28]
mov eax, dword [esp]
mov edx, dword [esp + 0x2c]
add edx, 4
movzx ebx, di
mov dword [esp + 0x10], ebx
add ebx, esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x5c]
jg 0x10069c73
mov edx, eax
mov eax, edi
mov dword [esp + 0x2c], edx
mov edi, dword [edx + 4]
movzx edx, word [edi]
cmp dx, ax
jbe 0x10069fcb
mov dword [esp], edi
mov word [esp + 0x28], dx
mov dword [esp + 8], ecx
test esi, esi
jle 0x10069c00
xor edx, edx
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
mov edi, dword [esp + 0x2c]
jmp 0x10069bb3
mov edi, dword [edi + 4]
mov dword [esp + 0x30], edi
movzx edi, word [edi]
mov ecx, edi
sub ecx, eax
lea eax, [ecx + ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov esi, eax
sub esi, ebx
cmp dword [esp + 4], eax
cmovle esi, ecx
imul edx, esi
mov ecx, ebp
mov eax, dword [esp + 0x14]
add eax, edx
mov edx, eax
add ebx, esi
mov eax, edi
mov ebp, ecx
cmp dword [esp + 0x1c], edi
mov esi, ecx
mov edi, dword [esp + 0x30]
jle 0x10069c04
mov dword [esp + 0x14], edx
movzx ecx, word [edi + 2]
mov edx, ebp
sub edx, ecx
jge 0x10069b70
mov dword [esp + 4], ecx
mov edx, ecx
sub edx, ebp
imul edx, ebx
mov edi, dword [edi + 4]
mov dword [esp + 0x30], edi
movzx edi, word [edi]
mov ecx, dword [esp + 0x10]
mov esi, edi
cmp eax, ecx
jae 0x10069bf0
sub esi, ecx
mov ecx, dword [esp + 4]
jmp 0x10069b99
sub esi, eax
mov ecx, dword [esp + 4]
jmp 0x10069b99
xor esi, esi
xor edx, edx
mov ebp, dword [esp + 0x54]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10069af0
mov eax, dword [esp + 0x3c]
add eax, esi
mov ebx, ebp
cmp eax, dword [ebp + 4]
mov ecx, dword [esp + 8]
mov ebp, dword [esp + 0x18]
movzx edi, word [esp + 0x28]
mov eax, dword [esp]
jle 0x10069c40
mov esi, ebp
mov ebp, ebx
jmp 0x10069b12
mov dword [esp + 4], esi
cmp esi, dword [esp + 0xc]
mov esi, ebp
mov ebp, ebx
jl 0x10069c5e
jne 0x10069b12
cmp edx, dword [esp + 0x24]
jge 0x10069b12
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
jmp 0x10069b12
test ecx, ecx
je 0x10069c85
mov dword [esp + 8], ecx
mov eax, dword [ecx]
movzx eax, word [eax]
mov dword [esp], eax
jmp 0x10069c94
mov dword [esp + 8], 0
mov dword [esp], 0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x10069e70
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov edi, ecx
cmp esi, eax
jle 0x10069cca
mov edi, ecx
nop word cs:[eax + eax]
mov edi, dword [edi + 4]
movzx eax, word [edi]
cmp esi, eax
jg 0x10069cc0
mov eax, dword [esp + 0x44]
jmp 0x10069cee
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 0x24], ebx
mov edi, dword [edi + 4]
test edi, edi
je 0x10069e70
movzx ebp, word [edi]
mov dword [esp + 0x30], ebp
sub ebp, esi
mov ecx, dword [esp + 0x34]
js 0x10069fcb
nop word cs:[eax + eax]
mov esi, ecx
mov ebx, eax
lea eax, [ecx + 4]
mov ecx, dword [ecx + 4]
movzx edx, word [ecx]
cmp ebp, edx
jge 0x10069d10
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], esi
movzx edi, word [esi]
mov dword [esp + 0x10], ebp
cmp ebp, edi
jl 0x10069fcb
xor eax, eax
mov dword [esp + 0x1c], 0
cmp word [esp + 0x30], di
jbe 0x10069df0
mov dword [esp + 0x1c], 0
xor ecx, ecx
xor esi, esi
mov edx, dword [esp + 0x34]
jmp 0x10069dad
mov edx, dword [edx + 4]
mov dword [esp + 0x14], edx
movzx ebx, word [edx]
mov eax, ebx
sub eax, edi
lea edx, [eax + ecx]
mov dword [esp + 4], edx
mov edi, dword [esp + 0x18]
mov edx, edi
sub edx, ecx
cmp dword [esp + 4], edi
cmovle edx, eax
imul ebp, edx
mov eax, esi
add dword [esp + 0x1c], ebp
add ecx, edx
mov edi, ebx
mov esi, eax
cmp ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
jae 0x10069df0
movzx eax, word [edx + 2]
mov ebp, esi
sub ebp, eax
jge 0x10069d70
mov dword [esp + 4], eax
mov ebp, eax
sub ebp, esi
imul ebp, ecx
mov edx, dword [edx + 4]
mov dword [esp + 0x14], edx
movzx ebx, word [edx]
mov eax, dword [esp + 0x10]
mov edx, ebx
cmp edi, eax
jge 0x10069de0
sub edx, eax
mov eax, dword [esp + 4]
jmp 0x10069d99
sub edx, edi
mov eax, dword [esp + 4]
jmp 0x10069d99
mov ecx, eax
mov eax, dword [esp + 0x3c]
add eax, ecx
mov ebp, dword [esp + 0x54]
cmp eax, dword [ebp + 4]
jge 0x10069e50
cmp ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
jg 0x10069ce3
mov edx, ecx
mov ebx, dword [esp + 0x1c]
jl 0x10069cd0
cmp ebx, dword [esp + 0x24]
jl 0x10069cd0
jne 0x10069ce3
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp]
jl 0x10069cd0
jmp 0x10069ce3
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
jmp 0x10069ce3
cmp dword [esp + 8], 0
je 0x10069ec0
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0xc]
cmp eax, dword [ebp + 4]
jg 0x10069ec0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10069ec0
mov esi, eax
mov edi, dword [esp]
mov eax, edi
mov word [ecx], di
mov word [ecx + 2], si
mov edx, dword [ecx + 4]
mov dword [ebp + 0x1c], edx
mov edx, dword [esp + 8]
mov edx, dword [edx]
movzx esi, word [edx]
cmp edi, esi
jle 0x10069edd
mov esi, dword [edx + 4]
add edx, 4
mov edi, edx
mov edx, esi
jmp 0x10069ee1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov dword [esi + eax + 8], 0xffffffff
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
jmp 0x10069a18
mov edi, dword [esp + 8]
mov dword [edi], ecx
mov ebx, dword [edx + 4]
mov esi, dword [esp]
add esi, dword [esp + 0x50]
mov dword [esp], esi
test ebx, ebx
je 0x10069f20
lea edi, [edx + 4]
nop word [eax + eax]
mov esi, ebx
movzx ebx, word [ebx]
cmp dword [esp], ebx
jl 0x10069f20
mov ebx, dword [ebp + 0x1c]
mov dword [edi], ebx
mov dword [ebp + 0x1c], edx
lea edi, [esi + 4]
mov ebx, dword [esi + 4]
mov edx, esi
test ebx, ebx
jne 0x10069f00
jmp 0x10069f22
mov esi, edx
mov dword [ecx + 4], esi
movzx ecx, word [esi]
mov edx, dword [esp]
cmp edx, ecx
jle 0x10069f32
mov word [esi], dx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov word [esi + ecx + 8], ax
mov eax, dword [esp + 0xc]
mov word [esi + ecx + 0xa], ax
jmp 0x10069ed0
push 0x1006d1d0
push 0x10
push eax
push esi
mov edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
test edi, edi
jle 0x10069f96
add esi, 0xc
mov eax, 1
xor ecx, ecx
jmp 0x10069f88
xor edx, edx
cmp word [esi - 2], 0xffff
setne dl
cmove eax, ecx
mov dword [esi], edx
add esi, 0x10
dec dword [esp + 0x58]
je 0x10069f96
cmp word [esi - 4], 0xffff
je 0x10069f70
mov edx, 1
jmp 0x10069f7d
add esp, 0x60
jmp 0x10069fc6
push 0x1006d190
push 0x10
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov eax, dword [esp + 0x84]
add esp, 0x10
push 0x1006d1d0
push 0x10
push eax
push esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3