Function at 0x66e452
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov ebx, edx
mov dword [ebp - 0x10], eax
mov edx, ecx
mov dword [ebp - 0x28], eax
push 6
mov dword [ebp - 0x24], eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [edx]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x30]
mov esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], edx
cmp dword [esi + 0x2c], 0
je 0x66e4b5
movzx ecx, byte [ebx + 4]
call fcn.0066d434
push eax
push 0x4ad680
push edx
call fcn.00634527
add esp, 0xc
mov dword [ebp - 0x10], 1
jmp 0x66ea96
cmp dword [esi + 0x38], 0
je 0x66e4cc
movzx ecx, byte [ebx + 4]
call fcn.0066d434
push eax
push 0x4ad6b0
jmp 0x66e4a0
mov edi, edx
mov ecx, edi
call fcn.0066df3f
mov dl, byte [ebp - 0x4c]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp dl, 0xc
jne 0x66e4fb
mov eax, dword [ebx]
push dword [eax]
push dword [ebp - 0x48]
push 0x6c
pop edx
call fcn.00649192
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dl, 0xe
mov byte [ebp - 0x4c], dl
test dword [ebx + 8], 0x400
je 0x66e51a
lea eax, [ebp - 0x4c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0066e409
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x66ea96
test dword [ebx + 8], 0x2000
je 0x66e587
lea eax, [ebp - 0x4c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0066e153
pop ecx
mov esi, dword [ebp - 0xc]
movzx edx, byte [ebx + 4]
xor eax, eax
cmp byte [ebx + 4], 0x74
mov ecx, edi
setne al
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0066d498
add esp, 0xc
test byte [ebx + 8], 0x20
je 0x66ea96
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [ebp - 0x24], eax
call fcn.0066d316
mov dword [ebp - 0x20], eax
pop ecx
test eax, eax
jne 0x66e9f3
mov dword [ebp - 0x10], 7
jmp 0x66ea96
cmp dword [ebx + 0x2c], 0
je 0x66e59f
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.0066ed5c
pop ecx
jmp 0x66eab3
movzx eax, byte [ebx + 4]
sub eax, 0x73
je 0x66e86a
dec eax
je 0x66e761
dec eax
je 0x66e86a
mov edx, dword [edi + 0x28]
push 0
push edx
mov dword [ebp - 0x1c], edx
lea eax, [edx + 1]
mov dword [ebp - 0x2c], eax
inc eax
push 0x6c
pop edx
mov dword [edi + 0x28], eax
call fcn.00649192
mov ecx, ebx
mov dword [ebx + 0x14], eax
call fcn.0066c44c
push dword [ebp - 0x1c]
xor edx, edx
lea ecx, [ebp - 0x64]
inc edx
or dword [eax + 8], 0x20
call fcn.0066c33f
mov eax, dword [edi + 0x1a0]
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, esi
mov eax, ecx
mov ecx, edi
push eax
call fcn.00670d7b
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x66ea96
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebp - 0x2c]
push 0x6c
pop edx
call fcn.00649192
mov dword [ebx + 0x18], eax
xor ecx, ecx
mov eax, dword [ebx + 0x38]
mov edx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
mov ecx, edi
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x1a0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00670d7b
mov dword [ebp - 0x10], eax
add esp, 0xc
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x28], eax
mov dword [ebx + 0x30], esi
movzx eax, word [esi + 6]
cmp word [ebx + 6], ax
jle 0x66e677
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x18]
call fcn.006574e2
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x3c], eax
call fcn.0064935e
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x34], esi
call fcn.0064935e
mov edx, dword [ebp - 0x14]
mov ecx, edi
push esi
mov ebx, eax
call fcn.0066df4e
pop ecx
mov ecx, dword [ebp - 0xc]
push esi
push dword [ebp - 0x1c]
push 0x25
pop edx
call fcn.00649192
mov ecx, edi
call fcn.0065b3fb
mov ecx, dword [ebp - 0xc]
mov esi, eax
push esi
push dword [ebp - 0x1c]
push 0x7a
pop edx
call fcn.00649192
mov ecx, dword [ebp - 0xc]
mov edi, eax
push 0
push esi
push ebx
push dword [ebp - 0x2c]
push 0x1d
pop edx
call fcn.0064930f
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.0065b41a
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
push esi
push ebx
push eax
mov eax, dword [ebp - 0x14]
mov edx, eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [eax]
call fcn.0066cc76
mov ecx, dword [ebp - 0xc]
add esp, 0x3c
mov edx, ebx
call fcn.006493a0
mov ebx, dword [ebp - 0x1c]
push edi
push ebx
push 7
pop edx
call fcn.00649192
mov edx, esi
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.006493a0
push 0
lea eax, [ebx + 1]
push eax
push 0x70
pop edx
call fcn.00649192
push 0
push ebx
push 0x70
pop edx
mov ecx, esi
call fcn.00649192
add esp, 0x18
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
jmp 0x66e534
xor eax, eax
mov edx, esi
mov dword [ebp - 0x2c], eax
mov ecx, edi
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x1a0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00670d7b
pop ecx
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
test eax, eax
jne 0x66ea96
mov dword [ebx + 0x30], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0xc], ecx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
test ecx, ecx
je 0x66e7e8
push ecx
mov ecx, dword [ebp - 0xc]
push 0x16
pop edx
call fcn.0064917e
pop ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x66e7e8
push ecx
inc ecx
mov edx, 0x93
push ecx
push dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.0064910e
add esp, 0xc
mov eax, dword [edi + 0x1a0]
mov edx, ebx
mov dword [ebp - 0x20], eax
mov ecx, edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00670d7b
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x30]
pop ecx
mov cx, word [ebx + 6]
mov dword [ebx + 0x30], esi
mov dx, word [esi + 6]
mov dword [ebp - 0x28], eax
call fcn.00635517
mov word [ebx + 6], ax
mov ecx, dword [esi + 0x38]
mov word [ebp - 6], ax
test ecx, ecx
je 0x66e84e
lea edx, [ebp - 0x34]
call fcn.006580dc
test eax, eax
je 0x66e84e
mov eax, dword [ebp - 0x34]
test eax, eax
jle 0x66e84e
cdq
push edx
push eax
call fcn.00635577
pop ecx
pop ecx
cmp word [ebp - 6], ax
jle 0x66e84e
mov word [ebx + 6], ax
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x66e534
mov edx, eax
mov ecx, esi
call fcn.00649643
jmp 0x66e534
cmp dl, 1
jne 0x66e877
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x66e8a1
mov edx, dword [edi + 0x28]
push 0
push edx
mov dword [ebp - 0x1c], edx
lea eax, [edx + 1]
push 0x6c
pop edx
mov dword [edi + 0x28], eax
call fcn.00649192
pop ecx
pop ecx
mov ecx, ebx
mov dword [ebx + 0x14], eax
call fcn.0066c44c
or dword [eax + 8], 0x20
mov eax, dword [ebp - 0x1c]
xor edx, edx
lea ecx, [ebp - 0x7c]
push eax
inc edx
call fcn.0066c33f
mov eax, dword [edi + 0x1a0]
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, esi
mov eax, ecx
mov ecx, edi
push eax
call fcn.00670d7b
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x66ea96
cmp byte [ebx + 4], 0x75
mov ecx, dword [ebx + 0x38]
sete al
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebx + 0x3c]
xor edx, edx
inc al
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov edx, ebx
mov byte [ebp - 0x7c], al
mov eax, dword [edi + 0x1a0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x30], ecx
mov ecx, edi
push eax
call fcn.00670d7b
mov edx, dword [ebx + 0x2c]
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.00657f14
mov eax, dword [ebx + 0x30]
and dword [ebx + 0x2c], 0
cmp byte [ebx + 4], 0x73
mov dword [ebp - 0x28], eax
mov dword [ebx + 0x30], esi
jne 0x66e93d
mov dx, word [esi + 6]
mov cx, word [ebx + 6]
call fcn.00635517
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x18]
call fcn.006574e2
mov eax, dword [ebp - 0x34]
and dword [ebx + 0xc], 0
and dword [ebx + 0x10], 0
cmp byte [ebp - 0x4c], 1
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x3c], eax
je 0x66e531
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0064935e
mov ecx, esi
mov ebx, eax
call fcn.0064935e
mov edx, dword [ebp - 0x14]
mov edi, eax
mov ecx, dword [ebp - 8]
push ebx
call fcn.0066df4e
pop ecx
push ebx
push dword [ebp - 0x1c]
mov ecx, esi
push 0x25
pop edx
call fcn.00649192
mov ecx, esi
call fcn.0064950e
mov ecx, dword [ebp - 8]
mov esi, eax
push ebx
push edi
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x14]
mov edx, eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [eax]
call fcn.0066cc76
mov ecx, dword [ebp - 0xc]
add esp, 0x24
mov edx, edi
call fcn.006493a0
mov edi, dword [ebp - 0x1c]
push esi
push edi
push 7
pop edx
mov esi, ecx
call fcn.00649192
mov edx, ebx
mov ecx, esi
call fcn.006493a0
push 0
push edi
push 0x70
pop edx
call fcn.00649192
add esp, 0x10
jmp 0x66e756
mov ecx, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
test ecx, ecx
jle 0x66ea35
mov esi, dword [ebp - 0x34]
push eax
mov edx, ebx
mov ecx, edi
call fcn.0066e056
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x66ea21
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
add esi, 4
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ecx
jl 0x66ea08
mov esi, dword [ebp - 0xc]
and dword [ebp - 0x2c], 0
lea edi, [ebx + 0x14]
mov ebx, dword [ebp - 0x20]
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
test eax, eax
js 0x66ea7e
push ecx
mov edx, eax
mov ecx, esi
call fcn.0064960b
pop ecx
push 0xfffffffffffffff7
mov ecx, ebx
call fcn.0066d3a1
mov edx, dword [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0064984a
or dword [edi], 0xffffffff
add edi, 4
mov edx, dword [ebp - 0x2c]
pop ecx
inc edx
mov dword [ebp - 0x2c], edx
pop ecx
mov ecx, dword [ebp - 0x24]
cmp edx, 2
jl 0x66ea3f
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebx + 0x30]
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x66ea35
mov ecx, dword [ebp - 0x20]
call fcn.0066d38e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x18]
call fcn.0066c436
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret