Function at 0x6765c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
xor eax, eax
mov dword [ebp - 0x38], ecx
push ebx
mov dword [ebp - 0x80], eax
lea ebx, [ecx + 0x2f0]
mov dword [ebp - 0x5c], eax
lea eax, [ecx + 0x50]
push esi
mov dword [ebp - 0x6c], eax
push edi
mov edi, dword [ecx]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x78], edi
mov eax, dword [edi]
mov dword [ebp - 0x64], eax
mov esi, dword [edi + 8]
imul eax, edx, 0x50
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], esi
add ebx, eax
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx + 0x2c]
imul ecx, eax, 0x50
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x30]
mov edx, eax
mov dword [ebp - 0x28], eax
call fcn.006793b0
mov ecx, dword [ebp - 0x38]
not eax
and eax, dword [ebp + 8]
not edx
and edx, dword [ebp + 0xc]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp - 0x4c]
call fcn.006a4b50
mov ecx, dword [ebp - 0x2c]
xor edx, edx
inc edx
and eax, edx
mov dword [ebp - 0x30], eax
test byte [ecx + 0x24], 0x40
je 0x676672
mov eax, dword [ebp - 0x38]
push 0x20
pop ecx
test byte [eax + 0x2c], cl
jne 0x676672
mov dword [ebp - 4], edx
jmp 0x676676
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0064935e
mov ecx, esi
mov dword [ebp - 0x58], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
call fcn.0064935e
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x7c], eax
mov dword [ebx + 0x18], eax
jbe 0x6766ba
mov ecx, dword [ebp - 0x10]
test byte [ecx + 0x24], 8
je 0x6766ba
mov eax, dword [edi + 0x2c]
mov ecx, esi
inc eax
push eax
push 0
push 0x38
mov dword [edi + 0x2c], eax
pop edx
mov dword [ebx], eax
call fcn.00649192
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
test ecx, ecx
jle 0x6766d5
mov edx, ebx
xor ecx, ecx
cmp dword [edx], ecx
jne 0x6766d7
dec eax
sub edx, 0x50
test eax, eax
jg 0x6766c7
jmp 0x6766d7
xor ecx, ecx
mov edx, dword [ebp - 0x38]
imul eax, eax, 0x50
mov eax, dword [eax + edx + 0x2fc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x70], edx
test dl, 0x10
je 0x676726
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
push 0xf
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push dword [ebp - 0x58]
push esi
push 0x10
pop edx
call fcn.00649192
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x2d], 0xd
jmp 0x67771d
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x24]
test edx, 0x400
je 0x67692c
movzx eax, word [eax + 0x28]
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.0065949e
lea edx, [eax + 2]
call fcn.0065b45d
mov ecx, eax
xor esi, esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x20], esi
jle 0x6767b0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x6767aa
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x676792
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
push eax
push dword [ebp - 0x30]
push esi
push ebx
call fcn.00675d87
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x6767a7
mov edx, dword [edx]
push eax
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
mov edx, dword [edx + 0x10]
push eax
call fcn.00676475
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x676760
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, esi
push dword [eax + 0x18]
push 0x38
pop edx
call fcn.00649192
mov eax, dword [ebp - 8]
mov ecx, esi
inc eax
push eax
push dword [ebp - 0x20]
push 0x38
pop edx
call fcn.00649192
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
push 0xfffffffffffffff9
pop edx
cmp byte [ecx + 0x1c], 0
cmovne eax, edx
push eax
push dword [ecx + 0x20]
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x28]
push 0xb
pop edx
call fcn.00649258
mov edx, dword [ebp - 0x2c]
add esp, 0x24
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
mov byte [edx + 0x1c], 0
mov dword [ebx + 0x30], eax
cmp byte [ecx + 0x31], 0
push 0x32
pop eax
lea ecx, [eax + 0x74]
cmovne eax, ecx
mov ecx, esi
mov byte [ebx + 0x2d], al
call fcn.0064950e
mov ecx, dword [ebp - 0x20]
dec ecx
mov dword [ebx + 0x34], eax
mov dword [ebp - 0x18], ecx
js 0x676920
imul eax, dword [ebx + 0x38], 0xc
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x30]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
cmp ecx, 0x10
jge 0x67686c
mov eax, dword [ebp - 0x2c]
mov ax, word [eax + 0x1e]
shr ax, cl
xor ecx, ecx
inc ecx
test cl, al
je 0x676869
mov ecx, ebx
call fcn.00675c70
jmp 0x676910
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x676913
mov eax, dword [ebp - 0x64]
cmp byte [eax + 0x45], 0
jne 0x6768ac
mov eax, dword [ebp - 4]
mov ecx, esi
mov edx, dword [ebx + 0x3c]
sub eax, 0xc
mov dword [ebp - 4], eax
mov edx, dword [edx + eax + 4]
call fcn.00649912
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.0064910e
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push 0x4e
pop edx
call fcn.00657154
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x67690d
mov ecx, dword [ebp - 0xc]
mov edx, 0x9d
push 0
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x64]
call fcn.006570c9
mov dword [esi + 0x10], eax
pop ecx
test eax, eax
je 0x6768ff
mov ecx, dword [ebp - 0x18]
add ecx, 2
add ecx, dword [ebp - 8]
push 0
mov dword [eax + 0x1c], ecx
push dword [ebx + 0x18]
push esi
push edi
call fcn.0065a9f2
add esp, 0x10
mov ecx, dword [ebp - 0x64]
mov edx, esi
and dword [esi + 0xc], 0
call fcn.006574e2
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
dec ecx
mov dword [ebp - 0x18], ecx
jns 0x67683e
mov ecx, edi
call fcn.006594a2
jmp 0x67771f
mov eax, edx
and eax, 0x100
je 0x6769a9
test dl, 5
je 0x6769a9
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
push ecx
push ebx
mov ecx, edi
call fcn.00675d87
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, edx
je 0x67696f
mov ecx, edi
call fcn.0065b41a
mov eax, dword [ebp - 4]
push eax
push dword [ebx + 0x10]
mov ecx, esi
push dword [ebp - 0x28]
push 0x1f
pop edx
call fcn.0064910e
mov esi, dword [ebp - 4]
add esp, 0xc
xor eax, eax
mov edx, esi
inc eax
mov ecx, edi
push eax
call fcn.006596ff
mov edx, dword [ebp - 0x28]
pop ecx
push esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.006593d8
add esp, 8
jmp 0x6776e9
test eax, eax
je 0x676bbd
test dl, 2
je 0x676bbd
push 0x20
pop eax
mov dword [ebp - 0x20], 0xa6
mov esi, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
test al, dl
je 0x6769e2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
xor eax, eax
lea ecx, [eax + 1]
jmp 0x6769e5
mov ecx, dword [ebp - 4]
test dl, 0x10
je 0x6769f8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x18], ecx
jmp 0x6769fb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x676a07
mov dword [ebp - 0x18], esi
mov esi, ecx
test esi, esi
je 0x676ab5
mov edx, dword [esi]
mov dword [ebp - 8], 0x1a18191b
mov dword [ebp - 4], edx
mov ecx, dword [edx + 0x10]
call fcn.00656c26
mov ecx, edi
test eax, eax
je 0x676a5a
call fcn.0065b3fb
mov edx, dword [edx + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], eax
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x3c], eax
call fcn.00676475
mov edx, dword [ebp - 4]
xor eax, eax
pop ecx
pop ecx
inc eax
movzx ecx, byte [edx]
sub ecx, 0x4f
or ecx, eax
movzx edx, byte [ebp + ecx - 8]
jmp 0x676a84
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.0065a42e
pop ecx
mov edx, esi
mov dword [ebp - 0x3c], eax
mov ecx, ebx
call fcn.00675c70
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
movzx ecx, byte [edx]
movzx edx, byte [ebp + ecx - 0x57]
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x58]
push dword [ebp - 0x28]
call fcn.0064910e
mov edx, dword [ebp - 0x3c]
add esp, 0xc
xor eax, eax
mov ecx, edi
inc eax
push eax
call fcn.006596ff
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, edi
call fcn.0065b41a
jmp 0x676ad2
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
test eax, eax
push dword [ebp - 0x28]
push 0x25
pop edx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, esi
call fcn.00649192
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x676b4e
mov eax, dword [eax]
xor edx, edx
inc dword [edi + 0x2c]
inc edx
mov ecx, dword [edi + 0x2c]
push edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
push ecx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.00676475
mov edx, dword [ebp - 4]
pop ecx
pop ecx
mov eax, dword [edx + 0x10]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.00656c26
test eax, eax
jne 0x676b28
mov al, byte [edx]
cmp al, 0x51
je 0x676b16
cmp al, 0x4f
jne 0x676b28
cmp dword [ebp - 0x30], 0
push 0x52
pop edx
push 0x50
pop eax
cmovne edx, eax
mov dword [ebp - 0x20], edx
jmp 0x676b38
cmp dword [ebp - 0x30], 0
push 0x4f
pop eax
push 0x51
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
call fcn.00656c26
test eax, eax
jne 0x676b4e
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00675c70
mov ecx, esi
call fcn.0064950e
cmp dword [ebp - 0x30], 0
mov dword [ebx + 0x34], eax
sete cl
add cl, 6
cmp dword [ebp - 0x20], 0xa6
mov byte [ebx + 0x2d], cl
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 0x30], ecx
je 0x67771f
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 0x1c]
push 0x7b
pop edx
call fcn.00649192
mov edx, dword [ebp - 0x28]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.006593d8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x10]
call fcn.0064910e
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
push 0x53
pop edx
call fcn.0064962b
jmp 0x67771f
test edx, 0x200
je 0x6771bc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x24], ecx
movzx esi, word [eax + 0x18]
mov dword [ebp - 8], esi
movzx esi, word [eax + 0x1a]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x58], ecx
mov byte [ebp - 0x11], cl
mov byte [ebp - 0x5d], cl
mov ecx, dword [eax + 0x20]
movzx esi, si
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], esi
movzx esi, word [eax + 0x1c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x4c], esi
movzx esi, si
mov dword [ebp - 0x54], esi
test byte [ecx + 0x2c], 1
mov esi, dword [ebp - 0x1c]
je 0x676c39
cmp byte [ecx + 0x2f], 0
mov ecx, dword [ebp - 8]
jle 0x676c3c
mov esi, dword [ebp - 0x5c]
cmp word [esi + 0x32], cx
mov esi, dword [ebp - 0x1c]
jbe 0x676c3c
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], 1
jmp 0x676c3c
mov ecx, dword [ebp - 8]
movzx ecx, cx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], ecx
test dl, 0x20
je 0x676c75
mov eax, dword [eax + 0x30]
mov edi, ecx
mov eax, dword [eax + edi*4]
inc edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
movzx eax, ax
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x24]
cmp edi, eax
cmovle edi, eax
mov eax, edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
test dl, 0x10
je 0x676d1e
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
movzx eax, ax
cmp edx, eax
cmovle edx, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], edx
mov edx, 0x100
test word [eax + 0xa], dx
je 0x676ceb
mov eax, dword [edi + 0x2c]
mov ecx, esi
inc eax
push eax
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x24], eax
xor eax, eax
inc eax
push eax
push 0x38
pop edx
call fcn.00649192
pop ecx
pop ecx
mov ecx, esi
call fcn.0064950e
shl dword [ebx + 0x24], 1
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
sete cl
xor ecx, dword [ebp - 0x30]
or dword [ebx + 0x24], ecx
mov ecx, edx
cmp dword [ebp - 0x48], 0
jne 0x676d1e
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
test edx, edx
js 0x676d13
mov eax, dword [ebp - 0x5c]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
je 0x676d18
cmp edx, 0xfffffffe
jne 0x676d1e
xor eax, eax
inc eax
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 8]
movzx eax, word [edx + 0x32]
mov dword [ebp - 0xc], eax
cmp cx, ax
jae 0x676d4d
mov eax, dword [edx + 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x34]
cmp byte [edx + eax], cl
mov edx, dword [ebp - 0x30]
sete cl
cmp edx, ecx
je 0x676d59
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
jmp 0x676d50
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x676d84
cmp ax, cx
jne 0x676d84
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x5d], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], ecx
movzx ecx, si
mov esi, dword [ebp - 0x1c]
movzx eax, al
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
push dword [ebp - 0x24]
push edx
mov edx, ebx
call fcn.006761a2
mov ecx, dword [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x676dba
cmp word [ebp - 0x54], 0
je 0x676dba
mov edx, dword [ebp - 0x34]
lea edx, [edx + ecx]
mov ecx, dword [ebp - 0x64]
call fcn.00632789
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x676dd4
test byte [eax + 0xc], 0x28
jne 0x676dd4
xor ecx, ecx
mov dword [ebp - 0x44], ecx
jmp 0x676ddc
xor ecx, ecx
inc ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x676df1
test byte [edx + 0xc], 0x28
jne 0x676df1
xor edx, edx
mov dword [ebp - 0x10], ecx
inc edx
jmp 0x676df7
xor edx, edx
inc edx
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x676e04
mov dword [ebp - 0xc], ecx
cmp word [ebp - 8], ax
jbe 0x676e07
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
test eax, eax
je 0x676eab
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
add edx, dword [ebp - 0x18]
movzx ecx, cx
mov eax, dword [eax + 0x10]
push ecx
mov dword [ebp - 0x74], edx
mov ecx, edi
push edx
mov edx, eax
mov dword [ebp - 8], eax
call fcn.00676475
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x1c]
mov edx, ebx
mov ecx, esi
call fcn.00676393
mov ecx, dword [ebp - 8]
add esp, 0xc
call fcn.0065813b
test eax, eax
je 0x676e64
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x74]
push 0x4b
pop edx
call fcn.00649192
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x676e80
mov eax, dword [ebp - 0x34]
add eax, ecx
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
movzx edx, ax
call fcn.00675d33
pop ecx
mov ecx, dword [ebp - 0x20]
movzx eax, cx
mov ecx, dword [ebp - 8]
add dword [ebp - 0x24], eax
call fcn.00656c26
test eax, eax
jne 0x676ea1
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.00675c70
jmp 0x676ea7
xor eax, eax
inc eax
mov dword [ebp - 0x44], eax
xor al, al
jmp 0x676ed5
mov al, byte [ebp - 0x11]
test al, al
je 0x676ed5
mov eax, dword [ebp - 0x18]
add eax, edx
push eax
push ecx
push 0x3b
pop edx
mov ecx, esi
call fcn.00649192
inc dword [ebp - 0x24]
xor eax, eax
and dword [ebp - 0x44], 0
inc eax
pop ecx
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x11]
pop ecx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
movzx eax, al
sub ecx, eax
push ecx
mov ecx, edi
call fcn.00675cd8
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x676efe
cmp dword [ebp - 0x24], eax
je 0x676f28
mov ecx, dword [ebp - 0x44]
push dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x4c]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x40]
movzx edx, byte [ecx + eax*2 + 0x4a68f8]
mov ecx, esi
call fcn.0064930f
add esp, 0x10
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x676fe9
mov eax, dword [eax]
xor ecx, ecx
inc ecx
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.00659460
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
pop ecx
movzx eax, ax
mov ecx, edi
push eax
push dword [ebp - 0xc]
call fcn.00676475
push dword [ebp - 0x50]
mov edx, ebx
mov ecx, esi
call fcn.00676393
mov ecx, dword [ebp - 0x44]
add esp, 0xc
call fcn.0065813b
test eax, eax
je 0x676f93
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0xc]
push 0x4b
pop edx
call fcn.00649192
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x676fc0
mov ecx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x54]
movzx edx, ax
call fcn.00675d33
mov edx, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x54]
push dword [ebp - 0x58]
movzx eax, cx
mov ecx, edi
push eax
call fcn.00675cd8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
movzx eax, cx
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x34], eax
call fcn.00656c26
test eax, eax
jne 0x676fe1
mov edx, dword [ebp - 0x50]
mov ecx, ebx
call fcn.00675c70
jmp 0x67700b
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x67700b
cmp byte [ebp - 0x5d], 0
je 0x67700b
mov eax, dword [ebp - 0x34]
mov ecx, esi
add eax, dword [ebp - 0x18]
push eax
push 0
push 0x3b
pop edx
call fcn.00649192
and dword [ebp - 0x10], 0
inc dword [ebp - 0x34]
pop ecx
pop ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
call fcn.00632404
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x64]
call fcn.00632404
mov ecx, esi
call fcn.0064950e
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x677054
mov ecx, dword [ebp - 0x30]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
movzx edx, byte [eax + ecx*2 + 0x4a8f0c]
mov ecx, esi
call fcn.0064930f
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x67715e
mov edx, dword [ebp - 0x5c]
push 0x20
pop eax
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], al
jne 0x6770dc
mov ecx, dword [ebp - 0x38]
mov esi, 0x400
movzx eax, word [ecx + 0x2c]
test esi, eax
jne 0x67709d
test eax, 0x1000
je 0x67708b
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x67709d
push dword [ebp - 0x40]
push dword [ebp - 0x28]
call fcn.006763c7
pop ecx
pop ecx
jmp 0x67715e
inc dword [edi + 0x2c]
mov edx, 0x81
mov esi, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x40]
call fcn.00649192
mov edx, dword [ebp - 0x28]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.006593d8
mov ecx, dword [ebp - 0x1c]
push esi
push 0
push dword [ebp - 0x28]
push 0x20
pop eax
mov edx, eax
call fcn.0064910e
add esp, 0x1c
jmp 0x67715e
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
je 0x67715e
call fcn.0065e23e
mov ecx, edi
mov dword [ebp - 0xc], eax
movzx edx, word [eax + 0x32]
call fcn.0065b45d
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dx, word [eax + 0x32]
jae 0x677145
mov ebx, eax
xor edi, edi
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0x5c]
push eax
mov eax, dword [ebx + 4]
mov dx, word [eax + edi*2]
call fcn.0065e256
cwde
mov ecx, esi
push eax
push dword [ebp - 0x40]
push 0x60
pop edx
call fcn.0064910e
movzx eax, word [ebx + 0x32]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
inc edi
cmp edi, eax
jl 0x67710b
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x32]
push eax
push ecx
push dword [ebp - 0x7c]
mov ecx, esi
push dword [ebp - 0x28]
push 0x1d
pop edx
call fcn.0064930f
add esp, 0x10
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x5c]
call fcn.00676531
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
test dword [ecx + 0x24], 0x1000
je 0x677183
mov byte [ebx + 0x2d], 0xa6
jmp 0x67718f
cmp dword [ebp - 0x30], 0
sete al
add al, 6
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x40]
xor edx, edx
mov dword [ebx + 0x30], eax
inc edx
mov al, byte [ecx + 0x26]
and al, dl
mov byte [ebx + 0x2e], al
test byte [ecx + 0x24], 0xf
jne 0x6771a9
mov byte [ebx + 0x2f], dl
cmp dword [ebp - 4], 0
je 0x67771f
and dword [ebp - 0x5c], 0
jmp 0x67771f
test edx, 0x2000
je 0x6776e1
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x34], eax
inc eax
inc dword [edi + 0x2c]
mov dword [ebp - 0x50], ecx
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x58], ecx
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.0064935e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], eax
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edx
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov byte [ebx + 0x2d], 0x34
mov cl, byte [ecx + 0x2e]
cmp cl, 1
jbe 0x6772f4
movzx ecx, cl
sub ecx, dword [ebp - 0x4c]
dec ecx
mov dword [ebp - 4], ecx
imul ecx, ecx, 0x50
push eax
add ecx, 0x58
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.0063260a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x677259
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x677966
mov al, byte [ebp - 4]
inc al
movzx eax, al
push 0x50
mov dword [ecx + 4], eax
mov dword [ecx], eax
pop eax
push eax
push dword [ebp - 0x10]
lea eax, [ecx + 8]
push eax
call fcn.0068ac70
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 8
inc eax
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 4], eax
jl 0x6772c5
mov esi, dword [ebp - 0x40]
lea edi, [ebx + 0x7c]
mov ebx, dword [ebp - 4]
add esi, 0x58
push 0x50
pop eax
push eax
movzx eax, byte [edi]
imul eax, eax, 0x50
add eax, ecx
push eax
push esi
call fcn.0068ac70
mov ecx, dword [ebp - 0x74]
add esp, 0xc
push 0x50
pop eax
add edi, eax
add esi, eax
dec ebx
jne 0x67729c
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x54]
xor eax, eax
mov ecx, dword [ebp - 0x38]
test byte [ecx + 0x2c], 0x10
jne 0x67733c
push 0x20
pop ecx
test byte [edx + 0x24], cl
jne 0x6772ff
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push ecx
push eax
mov dword [ebp - 0x20], ecx
mov ecx, esi
push 0x3b
pop edx
call fcn.00649192
pop ecx
pop ecx
jmp 0x677333
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x40], ecx
jmp 0x6772ca
mov ecx, edx
call fcn.0065e23e
mov esi, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
push 0x6c
pop edx
call fcn.00649192
pop ecx
pop ecx
mov edx, esi
mov ecx, edi
call fcn.006498f7
mov esi, dword [ebp - 0x1c]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x58], eax
push dword [ebp - 0xc]
mov ecx, esi
push 0
push 0x38
pop edx
call fcn.00649192
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
xor ecx, ecx
mov eax, dword [ebp - 0x6c]
inc ecx
cmp dword [eax + 0xc], ecx
jle 0x6773f6
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [eax + 0xc], edx
jle 0x6773f6
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp eax, dword [ebp - 0x2c]
je 0x6773bd
test byte [esi + 4], 1
jne 0x6773bd
test byte [eax + 0xa], 6
jne 0x6773bd
mov esi, 0x1fff
test word [eax + 0xc], si
je 0x6773bd
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x64]
push ebx
call fcn.00657837
pop ecx
mov ecx, dword [ebp - 0x64]
mov edx, edi
push eax
call fcn.00657248
mov edx, dword [ebp - 4]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x6c]
inc edx
add ecx, 0x30
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
cmp edx, dword [eax + 0xc]
jl 0x677376
mov ebx, dword [ebp - 0x3c]
test edi, edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x78]
je 0x6773f6
mov ecx, dword [ebp - 0x48]
mov edx, 0x147
push ecx
push 0
mov ecx, edi
call fcn.00657154
pop ecx
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov ecx, 0x400
mov edx, dword [ebp - 0x68]
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [ebp - 0x74], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp dword [edx + 0xc], eax
jle 0x677670
or dword [ebp - 0x90], 0xffffffff
mov esi, dword [ebp - 0x28]
imul ecx, ecx, 0x30
add ecx, dword [edx + 0x14]
cmp dword [ecx + 0x14], esi
mov esi, dword [ebp - 0x1c]
je 0x67744e
mov esi, 0x400
test word [ecx + 0xc], si
mov esi, dword [ebp - 0x1c]
je 0x677660
mov edx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov dword [ebp - 4], eax
test edx, edx
je 0x677465
test byte [ecx + 4], 1
jne 0x677465
mov dword [edx + 0xc], ecx
mov ecx, edx
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
push dword [ebp - 0x74]
push eax
push eax
push ecx
mov ecx, edi
call fcn.0067d016
add esp, 0x14
mov dword [ebp - 0x88], eax
test eax, eax
je 0x67765b
movzx ecx, byte [ebx + 0x2c]
mov edx, dword [ebp - 0x40]
push 0
push ecx
push dword [ebp - 0x4c]
lea ecx, [eax + 0x2f0]
push ecx
mov ecx, edi
call fcn.00675a0b
mov eax, dword [ebp - 0x38]
add esp, 0x10
test byte [eax + 0x2c], 0x10
jne 0x6775de
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x90]
push 0x20
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [ebp - 0x54]
cmove ecx, edx
mov dword [ebp - 0x10], ecx
pop ecx
test byte [eax + 0x24], cl
jne 0x677507
push 0
push dword [ebp - 0x58]
mov ecx, edi
push dword [ebp - 0x28]
push edx
mov edx, eax
call fcn.006595f1
push dword [ebp - 0x10]
mov ecx, esi
push eax
push 0
push dword [ebp - 0x20]
push 0x2b
pop edx
call fcn.0064930f
add esp, 0x20
mov dword [ebp - 4], eax
jmp 0x6775de
mov ecx, eax
call fcn.0065e23e
mov ecx, edi
mov dword [ebp - 0x84], eax
movzx edx, word [eax + 0x32]
mov dword [ebp - 8], edx
call fcn.0065b45d
and dword [ebp - 0x8c], 0
mov ecx, eax
mov dword [ebp - 0x18], ecx
test edx, edx
jle 0x67756c
mov ebx, dword [ebp - 0x8c]
mov esi, edx
mov eax, dword [ebp - 0x84]
add ecx, ebx
mov edx, dword [ebp - 0x54]
push ecx
push dword [ebp - 0x28]
mov eax, dword [eax + 4]
mov ecx, edi
movsx eax, word [eax + ebx*2]
push eax
call fcn.0065968c
mov ecx, dword [ebp - 0x18]
add esp, 0xc
inc ebx
cmp ebx, esi
jl 0x67753a
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x67758f
push edx
push ecx
push 0
push dword [ebp - 0x20]
mov ecx, esi
push 0x1e
pop edx
call fcn.0064930f
mov dword [ebp - 4], eax
add esp, 0x10
mov eax, dword [ebp - 0x10]
test eax, eax
js 0x6775d0
push dword [ebp - 0x58]
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x18]
push 0x63
pop edx
call fcn.0064910e
add esp, 0xc
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x58]
push dword [ebp - 0x20]
push 0x7e
pop edx
call fcn.0064930f
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x6775d0
push 0x10
pop edx
mov ecx, esi
call fcn.0064962b
push dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.0065b493
pop ecx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0xc]
push 0xe
pop edx
call fcn.00649192
mov eax, dword [ebp - 4]
pop ecx
pop ecx
test eax, eax
je 0x677600
mov edx, eax
mov ecx, esi
call fcn.00649643
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x24]
push 1
pop ecx
cmp byte [edx + 0x32], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x330]
mov dword [ebp - 0x24], eax
test dword [ecx + 0x24], 0x200
je 0x677650
cmp dword [ebp - 0x44], 0
je 0x677633
mov eax, dword [ebp - 0x50]
cmp dword [ecx + 0x20], eax
jne 0x677650
mov eax, dword [ebp - 0x54]
test byte [eax + 0x24], 0x20
je 0x677648
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x677650
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x50], eax
jmp 0x677654
and dword [ebp - 0x50], 0
mov ecx, edx
call fcn.0067d836
mov edx, dword [ebp - 0x68]
xor eax, eax
mov ecx, dword [ebp - 0x44]
inc ecx
mov dword [ebp - 0x44], ecx
cmp ecx, dword [edx + 0xc]
jl 0x67742b
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x38], ecx
test ecx, ecx
je 0x677680
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x677694
mov dword [ecx + 0xc], eax
mov edx, ecx
mov ecx, dword [ebp - 0x64]
call fcn.006574e2
mov ecx, esi
call fcn.0064950e
mov edx, dword [ebp - 0x70]
push eax
call fcn.006495fb
mov edx, dword [ebx + 0xc]
pop ecx
mov ecx, esi
call fcn.006491a7
mov edx, dword [ebp - 0x30]
mov ecx, esi
call fcn.006493a0
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x6776cf
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
call fcn.00632404
cmp dword [ebp - 0x24], 0
jne 0x67771f
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00675c70
jmp 0x67771f
push 0x20
pop eax
test byte [ebp - 0x70], al
je 0x6776ef
mov byte [ebx + 0x2d], 0xa6
jmp 0x67771f
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0xc]
mov al, byte [ecx + 0x4a5ecc]
movzx edx, byte [ecx + 0x4a69a8]
mov ecx, esi
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebx + 0x30], eax
call fcn.00649192
inc eax
mov dword [ebx + 0x34], eax
xor eax, eax
inc eax
mov byte [ebx + 0x2f], al
pop ecx
pop ecx
xor edx, edx
cmp dword [ebp - 0x5c], edx
sete dl
inc edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 8], eax
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
jmp 0x67780a
xor ecx, ecx
mov dword [ebp - 4], ecx
movzx ecx, word [esi + 0xa]
test cl, 6
jne 0x677800
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
je 0x67776e
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x6777fd
mov eax, dword [esi]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], eax
cmp dword [ebx], 0
je 0x677780
test byte [eax + 4], cl
je 0x6777fd
cmp edx, ecx
jne 0x6777a2
push dword [ebp - 0x5c]
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.0065b048
pop ecx
test eax, eax
jne 0x677830
push 2
pop eax
mov dword [ebp - 8], eax
jmp 0x677800
cmp edx, 3
jl 0x677833
movzx eax, word [esi + 0xa]
test eax, 0x200
je 0x6777d4
mov eax, dword [ebx + 0x24]
shr eax, 1
test byte [ebx + 0x24], cl
mov ecx, dword [ebp - 0x1c]
push eax
push 0
pop edx
setne dl
add edx, 0x15
call fcn.0064917e
pop ecx
mov dword [ebp - 4], eax
push 0x10
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
push edi
call fcn.0065a9f2
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x6777f6
mov ecx, dword [ebp - 0x1c]
mov edx, eax
call fcn.00649643
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
dec ecx
add esi, 0x30
mov dword [ebp - 0xc], ecx
test ecx, ecx
jg 0x67773e
mov edx, eax
mov dword [ebp - 0x3c], edx
test eax, eax
jg 0x67772b
mov eax, dword [ebp - 0x6c]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x6778df
xor ecx, ecx
inc ecx
movzx eax, word [esi + 0xa]
test eax, 0x1000
je 0x6777af
mov eax, dword [ebp - 8]
test eax, eax
jne 0x677800
push 3
jmp 0x67779c
test byte [esi + 0xa], 6
jne 0x6778db
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x6778db
test ecx, 0x800
je 0x6778db
mov ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], ecx
jne 0x6778db
cmp dword [ebx], 0
jne 0x6778db
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [ebp - 0x6c]
push 0
push 0x83
push dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
push dword [ebp + 8]
push dword [esi + 0x1c]
call fcn.0067968e
add esp, 0x14
test eax, eax
je 0x6778d8
test byte [eax + 0xa], 4
jne 0x6778d8
mov esi, dword [eax]
lea edi, [ebp - 0xc0]
mov eax, dword [ebp - 0x70]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp - 0x78]
push 0x10
push dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc0]
push eax
push edi
call fcn.0065a9f2
mov esi, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x3c]
dec eax
add esi, 0x30
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], esi
test eax, eax
jg 0x677850
cmp dword [ebx], 0
je 0x677960
mov ecx, dword [ebp - 0x1c]
call fcn.0064950e
push dword [ebx]
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x38
pop edx
call fcn.00649192
pop ecx
pop ecx
mov ecx, edi
call fcn.006596be
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov esi, dword [eax + 0x14]
cmp dword [eax + 0xc], edx
jle 0x677960
test byte [esi + 0xa], 6
jne 0x677954
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
jne 0x677951
push 0x10
push dword [ebp - 0x7c]
push dword [esi]
push edi
call fcn.0065a9f2
mov edx, dword [ebp - 0x80]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x6c]
inc edx
add esi, 0x30
mov dword [ebp - 0x80], edx
cmp edx, dword [eax + 0xc]
jl 0x677921
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret