Function at 0x86329c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, ecx
xor ecx, ecx
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ecx
mov byte [esp + 7], cl
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
push esi
mov esi, edx
mov dword [esp + 0x24], ecx
push edi
mov ecx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
call fcn.00869fa5
mov ebx, eax
movsx edx, word [esi + 0x2a]
xor eax, eax
mov dword [esp + 0x50], edx
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, esi
test byte [edi + 0x24], 0x20
jne 0x8632ff
and dword [esp + 0x14], 0
mov dword [esp + 0x3c], 1
jmp 0x863312
mov ecx, edi
call fcn.00859f5b
mov dword [esp + 0x14], eax
movzx eax, word [eax + 0x32]
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x34], esi
test edx, edx
jle 0x863454
xor edx, edx
mov dword [esp + 0x2c], edx
movsx eax, word [edi + 0x28]
cmp esi, eax
je 0x86343e
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x863343
cmp dword [eax + esi*4], 0
jl 0x86343e
mov eax, dword [edi + 4]
movzx edi, byte [edx + eax + 0xc]
test edi, edi
je 0x86343a
mov cl, byte [ebp + 0x20]
push 2
cmp cl, 0xb
je 0x863363
movzx edi, cl
pop ecx
jmp 0x86336a
cmp edi, 0xb
pop ecx
cmove edi, ecx
cmp edi, 5
jne 0x863377
cmp dword [edx + eax + 4], 0
cmove edi, ecx
mov eax, edi
sub eax, 1
je 0x8633e2
sub eax, 1
je 0x8633d9
sub eax, 1
je 0x8633e2
sub eax, 1
mov ecx, ebx
mov eax, dword [ebp + 0x14]
je 0x8633c6
inc eax
add esi, eax
push esi
push 0x33
pop edx
call fcn.00844d63
pop ecx
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov edx, dword [eax + edx + 4]
call fcn.0085600b
pop ecx
mov edx, edi
mov ecx, ebx
call fcn.00845298
jmp 0x863432
push dword [ebp + 0x24]
inc eax
add eax, esi
push eax
push 0x32
pop edx
call fcn.00844d77
pop ecx
pop ecx
jmp 0x863436
mov ecx, dword [esp + 0x10]
call fcn.0085d505
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push dword [edx + eax]
push dword [esi]
push 0x4a4c04
push dword [esp + 0x34]
call fcn.0082f157
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x44]
inc ecx
add eax, ecx
mov ecx, ebx
push eax
push edi
push 0x513
push 0x41
pop edx
call fcn.00844cf3
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffff9
call fcn.0084551b
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.00845280
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
inc esi
add edx, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], edx
cmp esi, dword [esp + 0x50]
jl 0x863326
mov edx, dword [edi + 0x18]
mov dword [esp + 0x30], edx
test edx, edx
je 0x86354e
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x200
jne 0x86354e
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
cmp byte [ebp + 0x20], 0xb
not eax
push 2
mov dword [ecx + 0x38], eax
movzx eax, byte [ebp + 0x20]
pop esi
cmovne esi, eax
and dword [esp + 0x40], 0
cmp dword [edx], 0
jle 0x863546
lea eax, [edx + 8]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [esp + 0x50], ecx
test edx, edx
je 0x8634c0
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.00863219
pop ecx
test eax, eax
jne 0x863526
mov ecx, ebx
call fcn.00844fbd
push 0x10
push eax
push dword [esp + 0x58]
mov dword [esp + 0x54], eax
push dword [esp + 0x1c]
call fcn.00856313
add esp, 0x10
cmp esi, 4
jne 0x8634ef
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00844d8c
jmp 0x86351b
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
jne 0x8634fb
mov eax, dword [edi]
push 2
pop ecx
push 3
cmp esi, 5
mov edx, 0x113
push 0
cmove esi, ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0085d512
add esp, 0x10
mov edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.00844fff
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
inc edx
mov eax, dword [esp + 0x34]
add eax, 0x18
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
cmp edx, dword [ecx]
jl 0x8634a3
mov eax, dword [esp + 0x10]
and dword [eax + 0x38], 0
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x863589
cmp dword [eax], 0
jne 0x863564
and dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 4
jmp 0x863589
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], eax
test eax, eax
je 0x863589
mov ecx, ebx
call fcn.00844fbd
mov ecx, ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call fcn.00844fbd
mov dword [esp + 0x68], eax
cmp byte [ebp + 0x1c], 0
je 0x863785
cmp dword [esp + 0x14], 0
jne 0x863785
mov ecx, ebx
call fcn.00844fbd
mov dl, byte [ebp + 0x20]
mov ecx, eax
movzx esi, byte [edi + 0x30]
mov dword [esp + 0x34], ecx
cmp dl, 0xb
je 0x8635bc
movzx esi, dl
jmp 0x8635c5
push 2
cmp esi, 0xb
pop eax
cmove esi, eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x863676
cmp dword [eax + 0x10], 0
jne 0x863676
cmp dword [eax + 8], 0
jne 0x863673
push 4
pop esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x863614
push eax
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
push 0x35
pop edx
call fcn.00844cf3
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.00845280
push dword [ebp + 0x14]
mov ecx, ebx
push dword [esp + 0x38]
push dword [ebp + 0xc]
push 0x20
pop edx
call fcn.00844cf3
add esp, 0xc
test esi, esi
je 0x86374a
cmp esi, 3
jbe 0x86374f
cmp esi, 4
je 0x863664
cmp esi, 5
je 0x8636b0
cmp esi, 6
jne 0x86374a
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x14]
push 0
push edi
call fcn.008707d9
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00844d8c
jmp 0x86375c
push 6
pop esi
cmp esi, 5
jb 0x8635e7
test eax, eax
jne 0x86368e
movzx eax, dl
cmp esi, eax
je 0x8635e7
cmp dword [edi + 8], 0
je 0x8635e7
push 0xd
pop edx
mov ecx, ebx
call fcn.00844d55
mov ecx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x5c], eax
jmp 0x8635eb
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
test dword [eax + 0x1c], 0x2000
je 0x8636e1
push ecx
push ecx
push 0x6e
mov edx, edi
mov ecx, esi
call fcn.0086ed23
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x863716
xor ecx, ecx
push ecx
push ecx
mov edx, edi
mov ecx, esi
call fcn.00861a43
pop ecx
pop ecx
test eax, eax
jne 0x863716
cmp dword [edi + 8], eax
je 0x863740
mov ecx, esi
call fcn.0085d4f8
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0085ec71
add esp, 0x10
jmp 0x863740
mov ecx, esi
call fcn.0085d4f8
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 [esp + 0x64]
call fcn.0085e9dc
add esp, 0x24
mov dword [esp + 0x44], 1
jmp 0x86375c
push 2
pop eax
mov esi, eax
mov ecx, dword [esp + 0x10]
mov edx, esi
push edi
call fcn.0085d647
pop ecx
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.00844fff
mov esi, dword [esp + 0x30]
test esi, esi
je 0x863785
push 0xd
pop edx
call fcn.00844d55
lea edx, [esi - 1]
mov dword [esp + 0x6c], eax
mov ecx, ebx
call fcn.00845298
mov esi, dword [edi + 8]
and dword [esp + 0x18], 0
mov dword [esp + 0x50], esi
test esi, esi
je 0x863cf0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
je 0x863cdc
mov ecx, ebx
cmp dword [esp + 0x38], esi
jne 0x8637d2
mov eax, dword [esp + 0x68]
xor edx, edx
mov dword [esp + 0x24], eax
call fcn.00844d8c
mov edx, dword [esp + 0x64]
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.00844fff
jmp 0x8637db
call fcn.00844fbd
mov dword [esp + 0x24], eax
cmp byte [esp + 0xf], 0
jne 0x8637f6
mov ecx, dword [ebp + 0x14]
mov edx, edi
inc ecx
push ecx
mov ecx, ebx
call fcn.0086216b
pop ecx
mov byte [esp + 0xf], 1
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, eax
cmp dword [esi + 0x24], 0
mov dword [esp + 0x30], ecx
je 0x863846
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
mov ecx, ebx
push 0
push 0x46
pop edx
call fcn.00844d77
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [ebp + 0x14]
not eax
push dword [esp + 0x28]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x24]
call fcn.00856878
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
and dword [ecx + 0x38], 0
jmp 0x86384a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, dword [edx + eax*4]
xor edx, edx
inc eax
mov dword [esp + 0x40], edx
cmp di, word [esi + 0x34]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
jae 0x8638f3
and dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x8638a6
mov eax, dword [ebp + 0x14]
push dword [esp + 0x2c]
not eax
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + eax + 4]
call fcn.00856053
pop ecx
mov ecx, dword [esp + 0x10]
and dword [ecx + 0x38], 0
jmp 0x8638d9
cmp edx, 0xffffffff
je 0x8638bb
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x8638bb
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x8638be
mov eax, dword [ebp + 0x14]
push dword [esp + 0x2c]
sar edx, 0x1f
mov ecx, ebx
and edx, 1
push eax
add edx, 0x4c
call fcn.00844d77
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add dword [esp + 0x20], 0x18
inc edx
movzx eax, word [esi + 0x34]
inc dword [esp + 0x2c]
mov dword [esp + 0x40], edx
cmp edx, eax
jl 0x863873
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movzx eax, word [esi + 0x34]
mov ecx, ebx
push eax
push dword [esp + 0x3c]
push 0x65
pop edx
call fcn.00844cf3
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x863935
cmp dword [esp + 0x14], esi
jne 0x863935
cmp byte [ebp + 0x1c], 0
jne 0x863935
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.00844fff
jmp 0x863cd5
movzx eax, byte [esi + 0x36]
test eax, eax
je 0x863925
mov cl, byte [ebp + 0x20]
cmp cl, 0xb
je 0x86394a
movzx eax, cl
jmp 0x863953
push 2
cmp eax, 0xb
pop ecx
cmove eax, ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x38], esi
jne 0x863976
mov eax, dword [ebp + 0x30]
cmp dword [eax + 8], 0
jne 0x86396f
push 4
pop eax
mov dword [esp + 0x20], eax
jmp 0x86398a
push 6
pop eax
mov dword [esp + 0x20], eax
cmp eax, 5
jne 0x86398a
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.0086325d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], 0
jne 0x8639ed
cmp dword [esi + 0x14], 0
jne 0x8639ed
cmp dword [esp + 0x14], esi
jne 0x8639ed
cmp eax, 5
jne 0x8639ed
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x2000
je 0x8639cb
mov ecx, dword [esp + 0x10]
mov edx, edi
push 0
push 0
push 0x6e
call fcn.0086ed23
add esp, 0xc
test eax, eax
jne 0x8639ed
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x4000
je 0x863925
cmp dword [edi + 0x10], 0
jne 0x8639ed
mov ecx, edi
call fcn.00861339
test eax, eax
je 0x863925
mov ecx, dword [esp + 0x10]
call fcn.00854fb4
movzx eax, word [esi + 0x32]
mov ecx, ebx
push eax
push dword [esp + 0x38]
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push 0x1c
pop edx
call fcn.00844f6e
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp esi, edx
jne 0x863a22
mov ecx, dword [esp + 0x34]
jmp 0x863a35
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
call fcn.00857165
mov edx, dword [esp + 0x14]
mov ecx, eax
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x2c], ecx
jne 0x863a4c
mov eax, dword [esp + 0x20]
cmp eax, 5
jne 0x863bc7
test byte [edi + 0x24], 0x20
jne 0x863a97
push ecx
push dword [esp + 0x34]
mov edx, 0x84
mov ecx, ebx
call fcn.00844d77
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
test eax, eax
je 0x863bc3
push eax
push dword [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x34]
push 0x35
pop edx
call fcn.00844cf3
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.00845280
jmp 0x863bc3
cmp esi, edx
je 0x863ae6
and dword [esp + 0x48], 0
xor eax, eax
cmp ax, word [edx + 0x32]
jae 0x863ae6
mov edi, dword [esp + 0x48]
lea eax, [ecx + edi]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov dx, word [eax + edi*2]
call fcn.00859f73
cwde
mov ecx, ebx
push eax
push dword [esp + 0x38]
push 0x62
pop edx
call fcn.00844cf3
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
inc edi
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x863aac
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
je 0x863bc3
movzx edx, word [edx + 0x32]
mov ecx, ebx
call fcn.00845161
mov ecx, dword [esi + 0x38]
add eax, edx
and cl, 3
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
cmp cl, 2
mov dword [esp + 0x48], 0x34
cmove eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ecx
test edx, edx
je 0x863bc3
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, edi
call fcn.0085a94f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
movsx ecx, word [ecx + edx*2]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x863b72
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], 0x35
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
push eax
mov eax, dword [esp + 0x60]
inc ecx
add eax, edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x60]
add eax, ecx
mov ecx, ebx
push esi
push eax
call fcn.00844e3d
add esp, 0x14
mov edx, 0x90
mov ecx, ebx
call fcn.00845280
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x863b35
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x863c10
cmp eax, 3
jbe 0x863bfe
cmp eax, 4
je 0x863bef
cmp eax, 6
jne 0x863c10
push dword [esp + 0x30]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.008707d9
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00844d8c
jmp 0x863c96
mov ecx, dword [esp + 0x10]
mov edx, eax
push esi
call fcn.0085d55d
pop ecx
jmp 0x863c96
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x48], ecx
test dword [eax + 0x1c], 0x2000
je 0x863c3f
push ecx
push ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
push 0x6e
call fcn.0086ed23
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
jne 0x863c52
xor ecx, ecx
push ecx
push ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.00861a43
pop ecx
pop ecx
test eax, eax
je 0x863c5b
mov ecx, dword [esp + 0x10]
call fcn.0085d4f8
push dword [esp + 0x30]
cmp esi, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [esp + 0x14]
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x4c]
push dword [esp + 0x40]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x68]
call fcn.0085e9dc
add esp, 0x24
mov dword [esp + 0x44], 1
mov ecx, ebx
cmp dword [esp + 0x38], esi
jne 0x863ca9
mov edx, dword [esp + 0x4c]
call fcn.00845298
jmp 0x863cb2
mov edx, dword [esp + 0x24]
call fcn.00844fff
mov ecx, dword [esp + 0x10]
call fcn.00854fb8
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
je 0x863cd5
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.0085719b
pop ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14]
inc eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], eax
test esi, esi
jne 0x8637a0
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.0086325d
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret