Function at 0x66733d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push ebx
mov dword [ebp - 0x3c], ecx
setne byte [ebp - 1]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ecx
mov byte [ebp - 2], cl
mov ecx, dword [eax]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov ecx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
call fcn.0066df3f
test byte [edi + 0x24], 0x20
mov ebx, eax
movsx edx, word [edi + 0x2a]
mov dword [ebp - 0x44], edx
jne 0x66738d
and dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 1
jmp 0x66739e
mov ecx, edi
call fcn.0065e23e
mov dword [ebp - 0xc], eax
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x28], esi
test edx, edx
jle 0x6674c9
xor edx, edx
mov dword [ebp - 0x24], edx
movsx eax, word [edi + 0x28]
cmp esi, eax
je 0x6674b6
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x6673cd
cmp dword [eax + esi*4], 0
jl 0x6674b6
mov eax, dword [edi + 4]
movzx edi, byte [eax + edx + 0xc]
test edi, edi
je 0x6674b3
mov cl, byte [ebp + 0x20]
push 2
cmp cl, 0xa
je 0x6673ed
movzx edi, cl
pop ecx
jmp 0x6673f4
cmp edi, 0xa
pop ecx
cmove edi, ecx
cmp edi, 5
jne 0x667401
cmp dword [eax + edx + 4], 0
cmove edi, ecx
mov eax, edi
dec eax
je 0x667460
dec eax
je 0x667458
dec eax
je 0x667460
dec eax
mov ecx, ebx
mov eax, dword [ebp + 0x14]
je 0x667445
inc eax
add esi, eax
push esi
push 0x4c
pop edx
call fcn.0064917e
pop ecx
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x24]
push esi
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [edx + eax + 4]
call fcn.0065a4a0
pop ecx
mov edx, edi
mov ecx, ebx
call fcn.00649643
jmp 0x6674ad
push dword [ebp + 0x24]
inc eax
add eax, esi
push eax
push 0x4b
pop edx
call fcn.00649192
pop ecx
pop ecx
jmp 0x6674b0
mov ecx, dword [ebp - 8]
call fcn.006617a3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
push dword [eax + edx]
push dword [ecx]
push 0x4ac7a8
push dword [ebp - 0x20]
call fcn.006339bd
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x28]
inc ecx
add eax, ecx
mov ecx, ebx
push eax
push edi
push 0x513
push 0x36
pop edx
call fcn.0064910e
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffff9
call fcn.006498c3
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.0064962b
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
inc esi
add edx, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
cmp esi, dword [ebp - 0x44]
jl 0x6673b0
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x6675b2
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x200
jne 0x6675b2
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
cmp byte [ebp + 0x20], 0xa
push 2
mov dword [ecx + 0x38], eax
movzx eax, byte [ebp + 0x20]
pop esi
cmovne esi, eax
and dword [ebp - 0x34], 0
cmp dword [edx], 0
jle 0x6675ab
lea eax, [edx + 0xc]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x667530
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.006672f0
pop ecx
test eax, eax
jne 0x667590
mov ecx, ebx
call fcn.0064935e
push 0x10
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
push dword [ebp - 8]
call fcn.0065a79b
add esp, 0x10
cmp esi, 4
jne 0x66755c
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.006491a7
jmp 0x667586
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
jne 0x667567
mov eax, dword [edi]
push 2
pop ecx
push 3
cmp esi, 5
mov edx, 0x113
push 0
cmove esi, ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.006617b0
add esp, 0x10
mov edx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.006493a0
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
cmp edx, dword [ecx]
jl 0x667514
mov eax, dword [ebp - 8]
and dword [eax + 0x38], 0
cmp byte [ebp + 0x1c], 0
je 0x667754
cmp dword [ebp - 0xc], 0
jne 0x667754
mov ecx, ebx
call fcn.0064935e
mov cl, byte [ebp + 0x20]
movzx esi, byte [edi + 0x30]
mov dword [ebp - 0x34], eax
cmp cl, 0xa
je 0x6675e1
movzx esi, cl
jmp 0x6675ea
push 2
cmp esi, 0xa
pop edx
cmove esi, edx
cmp byte [ebp - 1], 0
je 0x667613
push dword [ebp + 0x18]
mov ecx, ebx
push eax
push dword [ebp + 0x14]
push 0x4e
pop edx
call fcn.0064910e
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0064962b
mov cl, byte [ebp + 0x20]
cmp esi, 5
jne 0x667645
cmp cl, 5
je 0x667645
mov eax, dword [edi + 8]
jmp 0x667632
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x667638
cmp cl, 3
je 0x667638
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x667622
jmp 0x667645
push 0xd
pop edx
mov ecx, ebx
call fcn.00649170
mov dword [ebp - 0x38], eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push 0x20
pop edx
call fcn.0064910e
add esp, 0xc
test esi, esi
jle 0x66771e
cmp esi, 3
jle 0x667723
cmp esi, 4
je 0x667712
cmp esi, 5
jne 0x66771e
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov esi, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
test dword [eax + 0x18], 0x2000
je 0x6676ab
push ecx
push ecx
push 0x6d
mov edx, edi
mov ecx, esi
call fcn.00672c62
add esp, 0xc
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x6676e0
xor ecx, ecx
push ecx
push ecx
mov edx, edi
mov ecx, esi
call fcn.00665bca
pop ecx
pop ecx
test eax, eax
jne 0x6676e0
cmp dword [edi + 8], eax
je 0x667709
mov ecx, esi
call fcn.00661796
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00662e9b
add esp, 0x10
jmp 0x667709
mov ecx, esi
call fcn.00661796
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
mov edx, edi
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call fcn.00662c0a
add esp, 0x24
mov dword [ebp - 0x3c], 1
jmp 0x66772f
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.006491a7
jmp 0x66772f
push 2
pop eax
mov esi, eax
mov ecx, dword [ebp - 8]
mov edx, esi
push edi
call fcn.006618df
pop ecx
mov edx, dword [ebp - 0x34]
mov ecx, ebx
call fcn.006493a0
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x667754
push 0xd
pop edx
call fcn.00649170
mov edx, esi
mov dword [ebp - 0x48], eax
mov ecx, ebx
call fcn.00649643
mov esi, dword [edi + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x44], esi
test esi, esi
je 0x667ba1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
je 0x667b8f
cmp byte [ebp - 2], 0
jne 0x667792
mov eax, dword [ebp + 0x14]
mov edx, edi
inc eax
mov ecx, ebx
push eax
call fcn.006662ef
mov eax, dword [ebp - 0x10]
pop ecx
mov byte [ebp - 2], 1
add eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.0064935e
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x18], eax
je 0x6677e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
mov ecx, ebx
push 0
push 0x3b
pop edx
call fcn.00649192
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
add esp, 4
mov dword [ecx + 0x38], eax
push dword [ebp - 0x18]
mov edx, dword [esi + 0x24]
call fcn.0065ac76
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x6677e5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
xor edx, edx
inc eax
mov dword [ebp - 0x34], edx
cmp di, word [esi + 0x34]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
jae 0x667889
and dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
movsx edx, word [eax + edx*2]
mov dword [ebp - 0x40], edx
cmp edx, 0xfffffffe
jne 0x667840
push dword [ebp - 0x24]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x28]
mov eax, dword [ebp - 0x1c]
mov edx, dword [edx + eax + 8]
call fcn.0065a4e8
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x667873
cmp edx, 0xffffffff
je 0x667855
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x667855
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x667858
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x24]
xor edx, edx
mov ecx, ebx
cmp dword [ebp - 0x40], edx
push eax
setl dl
add edx, 0x41
call fcn.00649192
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x1c], 0x18
inc edx
movzx eax, word [esi + 0x34]
inc dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
cmp edx, eax
jl 0x66780c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movzx eax, word [esi + 0x34]
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push 0x63
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x6678c9
cmp ecx, esi
jne 0x6678c9
cmp byte [ebp + 0x1c], 0
jne 0x6678c9
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.006493a0
jmp 0x667b89
movzx eax, byte [esi + 0x36]
test eax, eax
je 0x6678ba
mov dl, byte [ebp + 0x20]
cmp dl, 0xa
je 0x6678de
movzx eax, dl
jmp 0x6678e7
push 2
cmp eax, 0xa
pop edx
cmove eax, edx
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
jne 0x667943
cmp dword [esi + 0x14], 0
jne 0x667943
cmp ecx, esi
jne 0x667943
cmp eax, 5
jne 0x667943
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
je 0x667925
mov ecx, dword [ebp - 8]
mov edx, edi
push 0
push 0
push 0x6d
call fcn.00672c62
add esp, 0xc
test eax, eax
jne 0x667943
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x4000
je 0x6678ba
cmp dword [edi + 0x10], 0
jne 0x667943
mov ecx, edi
call fcn.006654c8
test eax, eax
je 0x6678ba
movzx eax, word [esi + 0x32]
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push 0x1c
pop edx
call fcn.0064930f
mov edx, dword [ebp - 0xc]
add esp, 0x10
cmp esi, edx
jne 0x66796a
mov ecx, dword [ebp - 0x28]
jmp 0x66797a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.0065b45d
mov edx, dword [ebp - 0xc]
mov ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x24], ecx
jne 0x66798f
mov eax, dword [ebp - 0x1c]
cmp eax, 5
jne 0x667ae6
test byte [edi + 0x24], 0x20
jne 0x6679d8
push ecx
push dword [ebp - 0x2c]
mov edx, 0x81
mov ecx, ebx
call fcn.00649192
cmp byte [ebp - 1], 0
pop ecx
pop ecx
je 0x667ae3
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 0x4e
pop edx
call fcn.0064910e
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0064962b
jmp 0x667ae3
cmp esi, edx
je 0x667a21
and dword [ebp - 0x40], 0
xor eax, eax
cmp ax, word [edx + 0x32]
jae 0x667a21
mov edi, dword [ebp - 0x40]
lea eax, [ecx + edi]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov dx, word [eax + edi*2]
call fcn.0065e256
cwde
mov ecx, ebx
push eax
push dword [ebp - 0x2c]
push 0x60
pop edx
call fcn.0064910e
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
inc edi
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x6679eb
mov edi, dword [ebp - 0x14]
cmp byte [ebp - 1], 0
je 0x667ae3
movzx edx, word [edx + 0x32]
mov ecx, ebx
call fcn.0064950e
mov ecx, dword [esi + 0x38]
add eax, edx
and cl, 3
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
cmp cl, 2
mov dword [ebp - 0x40], 0x4d
cmove eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], ecx
test edx, edx
jle 0x667ae3
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, edi
call fcn.0065ec0d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ecx + 4]
movsx ecx, word [ecx + edx*2]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x667a9e
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], 0x4e
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
push eax
mov eax, dword [ebp - 0x50]
inc ecx
add eax, edx
mov edx, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x4c]
add eax, ecx
mov ecx, ebx
push esi
push eax
call fcn.00649258
add esp, 0x14
mov edx, 0x90
mov ecx, ebx
call fcn.0064962b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x667a68
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x667b0e
cmp eax, 3
jle 0x667b00
cmp eax, 4
jne 0x667b0e
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.006491a7
jmp 0x667b69
mov ecx, dword [ebp - 8]
mov edx, eax
push esi
call fcn.006617ff
pop ecx
jmp 0x667b69
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.00661796
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
je 0x667b37
mov ecx, dword [ebp - 8]
push edx
push edx
push 0x6d
mov edx, edi
call fcn.00672c62
add esp, 0xc
mov edx, eax
push dword [ebp - 0x2c]
cmp esi, dword [ebp - 0xc]
sete cl
movzx ecx, cl
push ecx
mov ecx, dword [ebp - 8]
push 5
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, edi
call fcn.00662c0a
add esp, 0x24
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.006493a0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x667b89
push dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.0065b493
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14]
inc eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x66776c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x667bbc
lea edx, [eax + 1]
mov ecx, ebx
call fcn.006491a7
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.00649643
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret