Function at 0x1006d3bb
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [edx + 0x50]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x60], eax
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], ebx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x1c], eax
movzx eax, byte [edi + 0x24]
imul ecx, eax, 0x48
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [ebp - 0x68], eax
mov eax, dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x18], eax
call fcn.10070433
mov ecx, dword [ebp + 8]
not eax
and eax, dword [ebp + 0x14]
not edx
and edx, dword [ebp + 0x18]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 0xc]
call fcn.10086e00
and eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
mov dword [ebp - 0x70], eax
mov dword [edi + 0x18], eax
cmp byte [edi + 0x24], bl
jbe 0x1006d47c
mov eax, dword [ebp - 0x68]
test byte [eax + 0x24], 8
je 0x1006d47c
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 8]
inc eax
push ebx
push eax
push ebx
push 0x46
mov dword [esi + 0x2c], eax
pop edx
mov dword [edi], eax
call fcn.1003b08d
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, eax
test eax, eax
jle 0x1006d49f
mov edx, dword [ebp + 8]
imul eax, eax, 0x48
add edx, 0x2f0
add eax, edx
cmp dword [eax], ebx
jne 0x1006d49f
dec ecx
sub eax, 0x48
test ecx, ecx
jg 0x1006d493
imul eax, ecx, 0x48
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx + 0x2fc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x68]
test byte [eax + 0x28], 0x10
je 0x1006d4ef
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
mov ecx, dword [ebp - 8]
push ebx
push esi
push 0xd
pop edx
call fcn.1003b08d
mov ecx, dword [ebp - 8]
add esp, 0xc
push ebx
push dword [ebp - 0x30]
push esi
push 0xe
pop edx
call fcn.1003b08d
add esp, 0xc
mov dword [edi + 0x2c], eax
push 0xb
pop eax
mov byte [edi + 0x25], al
jmp 0x1006e4a2
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x24]
bt edx, 0xa
jae 0x1006d6ef
movzx eax, word [eax + 0x28]
mov ecx, esi
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
call fcn.1004e392
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], ebx
jbe 0x1006d56a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x1006d562
lea eax, [ecx + 2]
mov ecx, esi
add eax, ebx
test byte [edx + 0xc], 1
je 0x1006d550
push eax
push dword [ebp - 0x34]
push ebx
push edi
call fcn.1006cb95
mov eax, dword [edi + 0x10]
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x1006d55f
mov edx, dword [edx]
push 1
push eax
mov edx, dword [edx + 0x10]
call fcn.1006d1f0
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x1006d520
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
push ebx
push ecx
mov ecx, dword [ebp - 8]
push dword [eax + 0x18]
push 0x46
pop edx
call fcn.1003b08d
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov esi, dword [ebp - 0x14]
inc eax
mov ecx, dword [ebp - 8]
push ebx
push eax
push esi
push 0x46
pop edx
call fcn.1003b08d
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xor eax, eax
cmp byte [ecx + 0x1c], al
sete al
dec eax
and eax, 0xfffffffa
dec eax
push eax
push dword [ecx + 0x20]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 9
pop edx
call fcn.1003b1c9
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov byte [edx + 0x1c], bl
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x31], 0
sete al
dec al
and al, 0x6e
add al, 0x3c
sub esi, 1
mov byte [edi + 0x25], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
js 0x1006e4a2
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x14
add ecx, 2
add ecx, esi
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x30]
mov edx, dword [eax + esi*4]
mov dword [ebp - 0x30], edx
cmp esi, 0x10
jae 0x1006d636
mov eax, dword [ebp - 0x1c]
mov cx, si
mov ax, word [eax + 0x1e]
shr ax, cl
test al, 1
je 0x1006d633
mov ecx, edi
call fcn.1006c942
jmp 0x1006d6d7
mov ecx, dword [ebp + 0xc]
test byte [edx + 0xc], 1
je 0x1006d6da
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x51], 0
jne 0x1006d675
mov eax, dword [ebp - 0xc]
mov edx, dword [edi + 0x34]
sub eax, 0x14
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov edx, dword [edx + eax + 4]
call fcn.1003b7e1
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.1003b08d
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ebx
push ebx
push 0x35
pop edx
call fcn.10049a5a
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
test eax, eax
je 0x1006d6d7
mov ecx, dword [ebp - 0x30]
mov edx, 0xa8
push ebx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x5c]
call fcn.100499e2
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x1006d6ca
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ecx + 0x18], edx
push dword [edi + 0x18]
push eax
push dword [ebp - 0x24]
call fcn.1004d68c
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.10049dd8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
dec ecx
sub esi, 1
mov dword [ebp + 0xc], ecx
jns 0x1006d608
jmp 0x1006e4a2
test dl, 5
setne cl
bt edx, 8
setb al
test al, cl
je 0x1006d775
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
mov eax, dword [ebp - 0x24]
inc dword [eax + 0x2c]
mov ecx, dword [eax + 0x2c]
push ecx
push edx
mov dword [ebp + 0xc], ecx
mov edx, esi
push ebx
push edi
mov ecx, eax
call fcn.1006cb95
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp eax, edx
je 0x1006d73c
mov ecx, dword [ebp - 0x24]
call fcn.1004e379
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push eax
push dword [edi + 0x10]
push dword [ebp - 0x18]
push 0x1e
pop edx
call fcn.1003b08d
mov byte [edi + 0x25], 0xaa
add esp, 0xc
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x40]
and eax, dword [edi + 0x44]
or ecx, eax
jne 0x1006e4a2
push 4
pop eax
or word [esi + 0xa], ax
jmp 0x1006e4a2
mov ecx, 0x102
mov eax, edx
and eax, ecx
cmp eax, ecx
jne 0x1006d96e
mov dword [ebp - 0x2c], 0xaa
mov ecx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ecx
test dl, 0x20
je 0x1006d7b0
mov eax, dword [ebp - 0x1c]
push 4
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
pop eax
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0xc], eax
jmp 0x1006d7b3
mov dword [ebp + 0xc], ebx
test dl, 0x10
je 0x1006d7c9
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [edx + eax]
mov dword [ebp - 0x38], edx
jmp 0x1006d7cb
mov edx, ebx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1006d7da
mov dword [ebp - 0x38], ecx
mov ecx, edx
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1006d87c
mov edx, dword [ecx]
mov dword [ebp + 0xc], 0x18161719
mov dword [ebp - 0xc], edx
mov ecx, dword [edx + 0x10]
call fcn.1004959b
cmp eax, 1
jle 0x1006d828
mov ecx, esi
call fcn.1004e35a
mov edx, dword [edx + 0x10]
push 1
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], eax
call fcn.1006d1f0
mov edx, dword [ebp - 0xc]
pop ecx
pop ecx
movzx ecx, byte [edx]
inc ecx
and ecx, 2
or ecx, 1
mov cl, byte [ebp + ecx + 0xc]
jmp 0x1006d853
lea eax, [ebp - 0x58]
mov edx, ecx
push eax
mov ecx, esi
call fcn.1004cfb6
mov edx, dword [ebp - 0x14]
pop ecx
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.1006c942
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
movzx ecx, byte [edx]
mov cl, byte [ebp + ecx - 0x2a]
push dword [ebp - 0x50]
movzx edx, cl
push dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.1003b08d
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
call fcn.1004e379
mov esi, dword [ebp - 0x34]
xor esi, 1
jmp 0x1006d898
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x18]
xor esi, 1
lea edx, [esi*4 + 0x20]
call fcn.1003b0f7
pop ecx
pop ecx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1006d906
mov ecx, dword [eax]
mov eax, dword [ebp - 0x24]
push 1
mov dword [ebp + 0xc], ecx
inc dword [eax + 0x2c]
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x54], edx
push edx
mov edx, dword [ecx + 0x10]
mov ecx, eax
call fcn.1006d1f0
mov edx, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [edx + 0x10]
call fcn.1004959b
cmp eax, 1
jg 0x1006d8e5
mov al, byte [edx]
cmp al, 0x38
je 0x1006d8d9
cmp al, 0x36
jne 0x1006d8e5
lea edx, [esi*2 + 0x37]
mov dword [ebp - 0x2c], edx
jmp 0x1006d8f2
mov eax, dword [ebp - 0x34]
lea eax, [eax*2 + 0x36]
mov dword [ebp - 0x2c], eax
call fcn.1004959b
cmp eax, 1
jg 0x1006d906
mov edx, dword [ebp - 0x38]
mov ecx, edi
call fcn.1006c942
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6c]
sete al
add al, 4
mov dword [edi + 0x28], edx
cmp dword [ebp - 0x2c], 0xaa
mov byte [edi + 0x25], al
mov dword [edi + 0x2c], ecx
je 0x1006e4a2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
push ebx
inc dword [eax + 0x2c]
mov esi, dword [eax + 0x2c]
push esi
push edx
mov edx, 0x80
call fcn.1003b08d
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 8]
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x54]
call fcn.1003b08d
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0x53
pop edx
call fcn.1003b54c
jmp 0x1006e4a2
test edx, 0x200
je 0x1006df6c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
movzx ecx, word [eax + 0x18]
mov dword [ebp - 0x20], ecx
movzx ecx, word [eax + 0x1a]
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x38], ecx
movzx ecx, word [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
movzx ecx, cx
mov dword [ebp - 0x40], ecx
test byte [eax + 0x2c], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x50], ebx
mov byte [ebp + 0xf], bl
mov byte [ebp - 0x49], bl
je 0x1006d9e1
cmp byte [eax + 0x2f], bl
jle 0x1006d9e1
mov eax, dword [ebp - 0x44]
cmp word [eax + 0x32], cx
jbe 0x1006d9e1
mov byte [ebp + 0xf], 1
mov dword [ebp - 0x10], 1
movzx eax, cx
mov dword [ebp - 0x28], eax
mov ecx, eax
test dl, 0x20
je 0x1006da09
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
movzx eax, ax
cmp dword [ebp - 0x10], eax
ja 0x1006da09
mov dword [ebp - 0x10], eax
test dl, 0x10
je 0x1006da5a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
movzx eax, ax
cmp dword [ebp - 0x10], eax
ja 0x1006da28
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x48], ebx
jne 0x1006da5a
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
test edx, edx
js 0x1006da51
mov eax, dword [ebp - 0x44]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], bl
je 0x1006da56
cmp edx, 0xfffffffe
jne 0x1006da5a
mov byte [ebp + 0xf], 1
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
movzx eax, word [edx + 0x32]
mov dword [ebp - 0xc], eax
cmp cx, ax
jae 0x1006da89
mov eax, dword [edx + 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
cmp byte [edx + eax], cl
mov edx, dword [ebp - 0x34]
sete cl
cmp edx, ecx
je 0x1006da95
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
jmp 0x1006da8c
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1006dabf
cmp ax, cx
jne 0x1006dabf
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x49], al
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
movzx ecx, si
mov esi, dword [ebp - 0x24]
movzx eax, al
mov byte [ebp + 0xf], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
push dword [ebp - 0x10]
push edx
mov edx, edi
call fcn.1006cf33
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov edx, eax
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x1006daf9
cmp word [ebp - 0x40], bx
je 0x1006daf9
mov edx, dword [ebp - 0x28]
lea edx, [edx + ecx]
mov ecx, dword [ebp - 0x5c]
call fcn.10024106
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1006db0f
test byte [eax + 0xc], 0x28
mov dword [ebp - 0x58], ebx
je 0x1006db16
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1006db26
test byte [ecx + 0xc], 0x28
mov dword [ebp - 0x14], ebx
je 0x1006db2d
mov dword [ebp - 0x14], 1
test eax, eax
jne 0x1006dc93
cmp word [ebp - 0x20], bx
jne 0x1006dc93
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ebx
mov al, byte [ebp + 0xf]
mov dword [ebp - 0x20], ecx
test al, al
je 0x1006db77
push ebx
lea eax, [ecx + edx]
mov ecx, dword [ebp - 8]
push eax
push ebx
push 0x49
pop edx
call fcn.1003b08d
mov eax, dword [ebp - 0x28]
add esp, 0xc
inc eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x20], eax
mov al, byte [ebp + 0xf]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x10]
movzx eax, al
sub ecx, eax
push ecx
mov ecx, esi
call fcn.1006c9a6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0x2a]
test ax, ax
je 0x1006dba0
cmp dword [ebp - 0x20], eax
je 0x1006dbe7
test dword [ecx + 0x24], 0x40000
je 0x1006dbbc
mov ecx, dword [ebp - 8]
push ebx
push ebx
push dword [ebp - 0x3c]
push 0x77
pop edx
call fcn.1003b08d
add esp, 0xc
mov ecx, dword [ebp - 0x58]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x3c]
movzx edx, byte [ecx + eax*2 + 0x1008ba50]
mov ecx, dword [ebp - 8]
call fcn.1003b2f2
add esp, 0x10
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1006dd39
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x40]
movzx eax, ax
push eax
push edx
mov dword [ebp + 0xc], ecx
mov edx, ecx
mov ecx, esi
call fcn.1006d1f0
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.1004abd5
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1006dc3a
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0xc]
push 0x32
pop edx
call fcn.1003b08d
add esp, 0xc
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1006dc68
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x40]
movzx edx, ax
call fcn.1006c9ea
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x40]
movzx eax, cx
mov ecx, esi
push eax
call fcn.1006c9a6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
movzx eax, cx
add dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
call fcn.1004959b
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x1006dd34
mov edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.1006c942
jmp 0x1006dd5b
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x1006db45
mov eax, dword [eax]
mov edx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x10]
movzx edx, dx
mov eax, dword [eax + 0x10]
push edx
mov dword [ebp - 0x6c], ecx
mov edx, eax
push ecx
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.1006d1f0
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.1004abd5
test eax, eax
je 0x1006dcea
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x6c]
push 0x32
pop edx
call fcn.1003b08d
add esp, 0xc
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x1006dd06
mov eax, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x38]
movzx edx, ax
call fcn.1006c9ea
pop ecx
mov ecx, dword [ebp - 0x38]
movzx eax, cx
add dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
call fcn.1004959b
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x1006dd2a
mov edx, dword [ebp - 0x48]
mov ecx, edi
call fcn.1006c942
jmp 0x1006dd2d
mov dword [ebp - 0x58], ecx
mov al, bl
jmp 0x1006db77
mov dword [ebp - 0x14], ecx
jmp 0x1006dd5b
cmp byte [ebp - 0x49], bl
je 0x1006dd5b
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ebx
push eax
push ebx
push 0x49
pop edx
call fcn.1003b08d
add esp, 0xc
mov dword [ebp - 0x14], ebx
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1006dd6c
mov ecx, dword [ebp - 0x5c]
mov edx, eax
call fcn.10023dc7
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1006dd7d
mov ecx, dword [ebp - 0x5c]
mov edx, eax
call fcn.10023dc7
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1006ddb0
mov edx, dword [ebp - 0x34]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
movzx edx, byte [eax + edx*2 + 0x1008fc5c]
call fcn.1003b2f2
mov ecx, dword [ebp - 8]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test dword [eax + 0x24], 0x40000
je 0x1006ddd0
push ebx
push 1
push dword [ebp - 0x3c]
push 0x77
pop edx
call fcn.1003b08d
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test byte [eax + 0x24], 0x40
je 0x1006ddea
mov ecx, dword [ebp + 8]
test byte [ecx + 0x2c], 0x20
jne 0x1006ddea
mov eax, dword [ebp - 0x3c]
xor esi, esi
mov edx, dword [ebp - 0x18]
inc esi
jmp 0x1006de5d
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], 0x20
jne 0x1006dea2
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x2c]
test eax, 0x400
jne 0x1006de24
test eax, 0x1000
je 0x1006de15
cmp byte [ecx + 0x31], 1
je 0x1006de24
push dword [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.1006d150
pop ecx
pop ecx
jmp 0x1006de52
inc dword [esi + 0x2c]
mov edx, 0x87
mov esi, dword [esi + 0x2c]
mov ecx, dword [ebp - 8]
push ebx
push esi
push dword [ebp - 0x3c]
call fcn.1003b08d
mov ecx, dword [ebp - 8]
add esp, 0xc
push esi
push ebx
push dword [ebp - 0x18]
push 0x1f
pop edx
call fcn.1003b08d
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov esi, ebx
mov ecx, dword [ebp + 8]
cmp dword [edi], ebx
jne 0x1006de73
test byte [ecx + 0x2c], 0x20
jne 0x1006de73
push ecx
mov ecx, dword [ebp - 0x44]
push eax
call fcn.1006d2b0
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1006de89
push dword [ebp - 0x60]
mov edx, dword [ebp - 0x18]
call fcn.1006d355
pop ecx
mov ecx, dword [ebp - 0x1c]
test dword [ecx + 0x24], 0x1000
je 0x1006df39
mov byte [edi + 0x25], 0xaa
jmp 0x1006df44
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
cmp edx, eax
je 0x1006de58
call fcn.1005224b
mov ecx, esi
mov dword [ebp + 0xc], eax
movzx edx, word [eax + 0x32]
call fcn.1004e392
mov dword [ebp - 0xc], eax
mov esi, ebx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x32]
xor eax, eax
mov edx, ecx
cmp ax, cx
jae 0x1006df13
mov esi, dword [ebp + 0xc]
mov edi, ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x44]
mov dx, word [eax + edi*2]
call fcn.10052263
movsx ecx, ax
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
push 0x5a
pop edx
call fcn.1003b08d
movzx ecx, word [esi + 0x32]
add esp, 0xc
inc edi
cmp edi, ecx
jl 0x1006ded9
mov edi, dword [ebp + 0x10]
mov edx, ecx
mov esi, ebx
mov ecx, dword [ebp - 8]
movzx eax, dx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x70]
push dword [ebp - 0x18]
push 0x1c
pop edx
call fcn.1003b2f2
mov eax, dword [ebp - 0x3c]
add esp, 0x10
mov edx, dword [ebp - 0x18]
jmp 0x1006de5a
cmp dword [ebp - 0x34], ebx
sete al
add al, 4
mov byte [edi + 0x25], al
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x28], eax
mov al, byte [ecx + 0x26]
and al, 1
mov byte [edi + 0x26], al
test byte [ecx + 0x24], 0xf
jne 0x1006df5c
mov byte [edi + 0x27], 1
test esi, esi
je 0x1006e4a2
mov dword [ebp - 0x44], ebx
jmp 0x1006e4a2
test edx, 0x2000
je 0x1006e464
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [ebp - 0x3c], eax
inc edx
inc eax
mov dword [esi + 0x2c], edx
dec dword [esi + 0x38]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov byte [edi + 0x25], 0x42
mov dword [edi + 0x28], edx
mov al, byte [eax + 0x2e]
cmp al, 1
jbe 0x1006e08e
movzx eax, al
sub eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
imul eax, eax, 0x48
add eax, 0x50
call fcn.10086c00
mov ecx, esp
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x1006dffc
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
jmp 0x1006e6f4
mov edx, dword [ebp + 0xc]
lea edi, [ecx + 8]
mov esi, dword [ebp - 0x68]
push 0x12
lea eax, [edx + 1]
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
add ecx, 8
mov dword [ebp - 0x6c], ecx
cmp edx, 1
jl 0x1006e05a
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add ebx, 0x50
add eax, 0x6c
mov dword [ebp + 0xc], eax
movzx eax, byte [eax]
mov edi, ebx
imul esi, eax, 0x48
add ebx, 0x48
mov eax, dword [ebp + 0xc]
push 0x12
add eax, 0x48
mov dword [ebp + 0xc], eax
add esi, ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x6c]
sub edx, 1
jne 0x1006e035
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
test byte [edx + 0x2c], 0x10
jne 0x1006e0d9
test byte [ecx + 0x24], 0x20
jne 0x1006e099
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 8]
push ebx
push eax
push ebx
push 0x49
pop edx
mov dword [ebp - 0x2c], eax
call fcn.1003b08d
add esp, 0xc
jmp 0x1006e0d0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
jmp 0x1006e063
call fcn.1005224b
mov esi, eax
mov eax, dword [ebp - 0x24]
push ebx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x2c], edx
lea ecx, [edx + 1]
mov dword [eax + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 8]
push edx
push 0x71
pop edx
call fcn.1003b08d
add esp, 0xc
mov edx, esi
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.1003b7c6
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp - 0x58]
push ebx
push 0x46
pop edx
call fcn.1003b08d
mov dword [ebp - 0x64], eax
add esp, 0xc
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0xc], 1
jle 0x1006e173
mov edx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], edx
mov ecx, ebx
mov edi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
cmp eax, dword [ebp - 0x1c]
je 0x1006e141
test byte [eax + 0xa], 6
jne 0x1006e141
mov esi, 0x1fff
test word [eax + 0xc], si
mov esi, dword [ebp - 0x24]
je 0x1006e141
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
push ebx
call fcn.1004a1db
pop ecx
push eax
mov edx, edi
mov ecx, esi
call fcn.10049aee
mov edx, dword [ebp + 0xc]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x60]
inc edx
add ecx, 0x30
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
cmp edx, dword [eax + 0xc]
jl 0x1006e104
mov dword [ebp - 0x20], edi
test edi, edi
mov edi, dword [ebp + 0x10]
je 0x1006e173
mov eax, dword [ebp - 0x20]
mov edx, 0x1002c
push eax
push ebx
mov ecx, esi
call fcn.10049a5a
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, 0x400
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
push str.MULTI_INDEX_OR
or ax, cx
movzx eax, ax
push 1
push esi
mov dword [ebp - 0x6c], eax
call fcn.1003b239
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x40], ecx
cmp dword [eax + 0xc], ebx
jle 0x1006e400
mov edi, dword [ebp - 0x18]
mov edx, ebx
mov dword [ebp - 0xc], ebx
mov eax, dword [eax + 0x14]
cmp dword [eax + edx + 0x14], edi
je 0x1006e1d3
mov esi, 0x400
test word [eax + edx + 0xc], si
mov esi, dword [ebp - 0x24]
je 0x1006e3e7
mov eax, dword [eax + edx]
mov edi, ebx
mov edx, dword [ebp - 0x20]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x54], edi
test edx, edx
je 0x1006e1eb
mov dword [edx + 0xc], eax
mov dword [ebp + 0xc], edx
lea eax, [ecx + 1]
push eax
push str.INDEX__d
push 1
push esi
call fcn.1003b239
push dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x6c]
push ebx
push ebx
push dword [ebp + 0xc]
call fcn.10074538
add esp, 0x24
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1006e3de
mov edx, dword [ebp - 0x14]
lea ecx, [eax + 0x2f0]
push ebx
push ecx
mov ecx, esi
call fcn.1006c6d1
mov eax, dword [ebp + 8]
pop ecx
pop ecx
test byte [eax + 0x2c], 0x10
jne 0x1006e35a
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
jne 0x1006e254
or dword [ebp + 0xc], 0xffffffff
jmp 0x1006e257
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 0x10]
test byte [eax + 0x24], 0x20
jne 0x1006e294
push dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov edx, eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.1004bfa1
mov ecx, dword [ebp - 8]
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x2c]
push 0x2a
pop edx
call fcn.1003b2f2
add esp, 0x10
mov edi, eax
jmp 0x1006e35a
mov ecx, eax
call fcn.1005224b
mov ecx, esi
mov dword [ebp - 0x78], eax
movzx edi, word [eax + 0x32]
mov edx, edi
call fcn.1004e392
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x7c], ebx
test edi, edi
je 0x1006e2e6
mov esi, ebx
mov ebx, eax
mov eax, dword [ebp - 0x78]
lea ecx, [esi + ebx]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push dword [ebp - 0x18]
call fcn.1004bfa1
add esp, 0xc
inc esi
cmp esi, edi
jl 0x1006e2b9
mov esi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [ebp - 0x48]
cmp dword [ebp + 0xc], 0
je 0x1006e309
mov ecx, dword [ebp - 8]
push edi
push eax
push ebx
push dword [ebp - 0x2c]
push 0x1d
pop edx
call fcn.1003b2f2
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp dword [ebp + 0xc], 0
jl 0x1006e349
push dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
push edi
push dword [ebp - 0x48]
push 0x5c
pop edx
call fcn.1003b08d
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, 0x84
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call fcn.1003b2f2
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x1006e349
mov ecx, dword [ebp - 8]
push 0x10
pop edx
call fcn.1003b54c
mov edx, dword [ebp - 0x48]
mov ecx, esi
push edi
call fcn.1004e3c8
mov edi, dword [ebp - 0x54]
add esp, 4
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x58]
push 0xc
pop edx
call fcn.1003b08d
add esp, 0xc
test edi, edi
je 0x1006e383
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.1003b7e1
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x74]
cmp byte [edx + 0x32], 0
je 0x1006e393
mov dword [ebp - 0x28], 1
mov ecx, dword [edx + 0x328]
test dword [ecx + 0x24], 0x200
je 0x1006e3cd
cmp dword [ebp - 0x40], 0
je 0x1006e3b0
mov eax, dword [ebp - 0x30]
cmp dword [ecx + 0x20], eax
jne 0x1006e3cd
mov eax, dword [ebp - 0x10]
test byte [eax + 0x24], 0x20
je 0x1006e3c5
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x1006e3cd
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x30], edi
jmp 0x1006e3d0
mov dword [ebp - 0x30], ebx
mov ecx, edx
call fcn.10074ee3
mov ecx, esi
call fcn.1003b288
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
inc ecx
add edx, 0x30
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xc], edx
cmp ecx, dword [eax + 0xc]
jl 0x1006e1b7
mov edi, dword [ebp + 0x10]
mov ecx, esi
call fcn.1003b288
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1006e417
mov eax, dword [ebp - 0x3c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1006e42b
mov ecx, dword [ebp - 0x5c]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.10049dd8
mov esi, dword [ebp - 8]
mov ecx, esi
mov edx, dword [ebp - 0x64]
call fcn.1003b7e1
mov ecx, dword [esi + 0x6c]
mov dword [eax + 4], ecx
mov ecx, esi
mov edx, dword [edi + 0xc]
call fcn.1003b10a
mov edx, dword [ebp - 0x34]
mov ecx, esi
call fcn.1003b38b
cmp dword [ebp - 0x28], 0
jne 0x1006e4a2
mov edx, dword [ebp - 0x1c]
mov ecx, edi
call fcn.1006c942
jmp 0x1006e4a2
mov eax, dword [ebp - 0x68]
test byte [eax + 0x28], 0x20
je 0x1006e473
mov byte [edi + 0x25], 0xaa
jmp 0x1006e4a2
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0xc]
mov al, byte [ecx + 0x1008c730]
movzx edx, byte [ecx + 0x1008ba48]
mov ecx, dword [ebp - 8]
mov byte [edi + 0x25], al
mov eax, dword [ebp - 0x18]
push eax
mov dword [edi + 0x28], eax
call fcn.1003b0f7
pop ecx
inc eax
mov byte [edi + 0x27], 1
pop ecx
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x60]
xor ecx, ecx
cmp dword [ebp - 0x44], ecx
sete cl
inc ecx
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov ecx, ebx
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], edx
test edx, edx
jle 0x1006e5a2
movzx eax, word [esi + 0xa]
mov ebx, eax
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x24]
test al, 6
jne 0x1006e585
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x40]
and eax, dword [edi + 0x44]
or ecx, eax
je 0x1006e4f7
mov eax, dword [ebp + 8]
mov byte [eax + 0x32], 1
jmp 0x1006e582
mov ecx, dword [ebp - 0x68]
mov eax, dword [esi]
mov dword [ebp - 0x74], eax
test byte [ecx + 0x24], 8
je 0x1006e50b
test byte [eax + 4], 1
je 0x1006e582
mov ecx, dword [ebp - 0xc]
cmp ecx, 1
jne 0x1006e530
push dword [ebp - 0x44]
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.1004e035
mov edx, dword [ebp + 0xc]
pop ecx
test eax, eax
jne 0x1006e541
push 2
pop ecx
mov dword [ebp - 0x10], ecx
jmp 0x1006e585
mov edi, dword [ebp - 0x64]
movzx edi, di
mov dword [ebp - 0x64], edi
mov edi, dword [ebp + 0x10]
cmp ecx, 3
jge 0x1006e55e
movzx eax, word [esi + 0xa]
mov ecx, eax
test eax, 0x1000
je 0x1006e559
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x1006e585
push 3
jmp 0x1006e52a
mov eax, dword [ebp - 0x74]
jmp 0x1006e561
mov ecx, dword [ebp - 0x64]
test ecx, 0x200
jne 0x1006e582
push 0x10
push dword [ebp - 0x70]
push eax
push ebx
call fcn.1004d68c
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
mov ecx, dword [ebp - 0x10]
dec edx
add esi, 0x30
mov dword [ebp + 0xc], edx
test edx, edx
jg 0x1006e4c7
mov eax, dword [ebp - 0x60]
xor ebx, ebx
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
jg 0x1006e4b1
test edx, edx
jle 0x1006e68a
add esi, 0xc
mov dword [ebp + 8], esi
test byte [esi - 2], 6
jne 0x1006e678
movzx eax, word [esi]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [ebp + 0x10]
setb al
test al, cl
je 0x1006e678
mov ecx, dword [ebp - 0x18]
cmp dword [esi + 8], ecx
jne 0x1006e678
cmp dword [edi], ebx
jne 0x1006e678
mov eax, dword [esi - 0xc]
mov edx, ecx
mov ecx, dword [ebp - 0x60]
push ebx
push 0x83
push dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
push dword [ebp + 0x14]
push dword [esi + 0x10]
call fcn.10070734
mov edx, eax
add esp, 0x14
test edx, edx
je 0x1006e675
test byte [edx + 0xa], 4
jne 0x1006e675
test byte [edx + 0xc], 1
je 0x1006e63f
mov eax, dword [edx]
test dword [eax + 4], 0x800
je 0x1006e63f
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
jg 0x1006e675
mov esi, dword [edx]
lea edi, [ebp - 0xac]
mov eax, dword [ebp - 0x64]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
push 0x10
push dword [ebp - 0x70]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x24]
call fcn.1004d68c
mov edi, dword [ebp + 0x10]
add esp, 0x10
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
dec edx
add esi, 0x30
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], esi
test edx, edx
jg 0x1006e5bb
cmp dword [edi], 0
je 0x1006e6ee
mov ecx, dword [ebp - 8]
push ebx
push dword [edi]
mov eax, dword [ecx + 0x6c]
push 1
push 0x46
pop edx
mov dword [edi + 0x1c], eax
call fcn.1003b08d
mov edx, dword [ebp - 0x60]
add esp, 0xc
mov esi, dword [edx + 0x14]
cmp dword [edx + 0xc], ebx
jle 0x1006e6ee
test byte [esi + 0xa], 6
jne 0x1006e6e5
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x40]
and eax, dword [edi + 0x44]
or ecx, eax
jne 0x1006e6e5
push 0x10
push dword [ebp - 0x70]
push dword [esi]
push dword [ebp - 0x24]
call fcn.1004d68c
mov edx, dword [ebp - 0x60]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
inc ebx
add esi, 0x30
cmp ebx, dword [edx + 0xc]
jl 0x1006e6b3
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
lea esp, [ebp - 0xbc]
pop edi
pop esi
pop ebx
leave
ret