Function at 0x668780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
push ebx
xor eax, eax
mov dword [esp + 0x90], 0
push ebp
push esi
push edi
mov edi, dword [esp + 0xd4]
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x78], ebp
mov esi, dword [edi]
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0x20], esi
cmp dword [edi + 0x24], eax
jne 0x66a182
cmp byte [esi + 0x49], al
jne 0x66a182
push dword [esp + 0xd8]
push edi
call fcn.00666f20
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x668c8d
push dword [esi + 0x48]
push dword [edi]
call fcn.00663ac0
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x9c]
push eax
push ebx
push 0x6e
push esi
push edi
call fcn.00668260
mov dword [esp + 0x58], eax
xor eax, eax
cmp dword [esi + 0xc], eax
push esi
setne al
push edi
mov dword [esp + 0x98], eax
call fcn.00676a10
add esp, 0x24
test eax, eax
jne 0x668c94
push dword [esp + 0x94]
push esi
push edi
call fcn.00659a20
add esp, 0xc
test eax, eax
jne 0x668c94
mov ebp, dword [edi + 0x28]
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x8c], ebp
mov dword [eax + 0x38], ebp
lea eax, [ebp + 1]
inc dword [edi + 0x28]
test byte [esi + 0x24], 0x20
mov edx, dword [edi + 0x28]
mov dword [esp + 0x7c], eax
jne 0x6688bf
xor ebp, ebp
mov dword [esp + 0x38], ebp
jmp 0x6688ce
push esi
call fcn.00661920
add esp, 4
mov dword [esp + 0x38], eax
mov ebp, eax
mov ecx, dword [esi + 8]
xor ebx, ebx
mov dword [esp + 0x98], ebx
test ecx, ecx
je 0x668916
mov edi, edi
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x6688fd
test ebp, ebp
je 0x6688fd
mov eax, dword [esp + 0xd8]
mov esi, edx
mov dword [esp + 0x14], esi
mov dword [eax + 0x38], esi
inc dword [edi + 0x28]
inc ebx
mov ecx, dword [ecx + 0x14]
mov edx, dword [edi + 0x28]
test ecx, ecx
jne 0x6688e0
mov esi, dword [esp + 0x10]
mov dword [esp + 0x98], ebx
movsx eax, word [esi + 0x2a]
add eax, ebx
push 0
lea eax, [eax*4 + 2]
add eax, ebx
push eax
push dword [esp + 0x28]
call fcn.006478f0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x668c8d
movsx eax, word [esi + 0x2a]
lea eax, [eax*4]
add eax, ebp
mov dword [esp + 0x84], eax
lea ebp, [eax + ebx*4]
lea eax, [ebx + 1]
mov dword [esp + 0x34], ebp
push eax
push 1
push ebp
call sub.MSVCRT.dll_memset
xor eax, eax
mov byte [ebx + ebp + 1], 0
add esp, 0xc
xor ecx, ecx
cmp ax, word [esi + 0x2a]
jge 0x668991
mov ebp, dword [esp + 0x18]
nop
mov dword [ebp + ecx*4], 0xffffffff
inc ecx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x668980
mov ecx, dword [esp + 0xdc]
xor eax, eax
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov byte [esp + 0x27], al
xor al, al
cmp dword [ecx], 0
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edx
mov byte [esp + 0x1f], al
mov dword [esp + 0x50], 0
jle 0x668c3f
lea ebx, [ecx + 4]
mov dword [esp + 0x30], ebx
lea esp, [esp]
push dword [ebx]
lea eax, [esp + 0xb4]
push eax
call fcn.00662600
add esp, 8
test eax, eax
jne 0x668c89
movsx eax, word [esi + 0x2a]
xor ebp, ebp
test eax, eax
jle 0x668ab8
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], eax
mov esi, dword [eax]
mov dl, byte [esi]
movzx eax, dl
movzx edi, byte [eax + 0x6c13b0]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x6c13b0]
sub edi, eax
jne 0x668a95
mov ebx, ecx
sub ebx, esi
test dl, dl
je 0x668a89
movzx eax, byte [esi + ebx + 1]
inc esi
mov dl, byte [esi]
movzx ecx, byte [eax + 0x6c13b0]
movzx eax, dl
movzx edi, byte [eax + 0x6c13b0]
sub edi, ecx
je 0x668a66
jmp 0x668a91
test edi, edi
je 0x668b13
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x10]
inc ebp
mov eax, dword [esp + 0x48]
add eax, 0x10
mov dword [esp + 0x48], eax
movsx edx, word [esi + 0x2a]
cmp ebp, edx
jl 0x668a46
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0xd4]
movsx eax, word [esi + 0x2a]
cmp ebp, eax
jl 0x668bbe
cmp dword [esp + 0x38], 0
jne 0x668c5e
mov ebx, dword [ebx + 4]
mov esi, ebx
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x6c13b0]
sub eax, 0x5f
jne 0x668b6f
mov edi, str._ROWID_
sub edi, ebx
test dl, dl
je 0x668b6b
movzx eax, byte [esi + edi + 1]
inc esi
movzx ecx, byte [eax + 0x6c13b0]
mov dl, byte [esi]
movzx eax, dl
movzx eax, byte [eax + 0x6c13b0]
sub eax, ecx
je 0x668af0
jmp 0x668b6f
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
movsx eax, word [esi + 0x28]
cmp ebp, eax
jne 0x668b41
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x50]
mov byte [esp + 0x1f], 1
mov dword [ecx + ebp*4], eax
jmp 0x668ab1
cmp dword [esp + 0x38], 0
je 0x668b5b
mov ecx, dword [esi + 4]
mov eax, ebp
add eax, eax
test byte [ecx + eax*8 + 0xf], 1
je 0x668b5b
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
mov dword [ecx + ebp*4], eax
jmp 0x668ab1
test eax, eax
je 0x668b97
push str.ROWID
push ebx
call fcn.006678a0
add esp, 8
test eax, eax
je 0x668b97
push 0x6c5f9c
push ebx
call fcn.006678a0
add esp, 8
test eax, eax
jne 0x668c5e
mov ebx, dword [esp + 0x30]
or ebp, 0xffffffff
mov esi, dword [esp + 0x10]
mov edx, str.ROWID
mov edi, dword [esp + 0xd4]
mov byte [esp + 0x1f], 1
mov eax, dword [ebx]
mov dword [esp + 0x80], eax
jmp 0x668bda
test ebp, ebp
jns 0x668bd0
mov edi, dword [esp + 0xd4]
mov edx, str.ROWID
jmp 0x668bda
mov eax, dword [esi + 4]
mov ecx, ebp
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
push edx
push dword [esi]
push 0x17
push edi
call fcn.00640650
add esp, 0x14
cmp eax, 1
je 0x668c89
cmp eax, 2
jne 0x668c11
mov eax, dword [esp + 0x18]
mov dword [eax + ebp*4], 0xffffffff
mov esi, dword [esp + 0x50]
add ebx, 0x18
mov ecx, dword [esp + 0xdc]
inc esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], ebx
cmp esi, dword [ecx]
mov esi, dword [esp + 0x10]
jl 0x668a10
mov al, byte [esp + 0x1f]
mov edx, dword [esp + 0xd8]
mov bl, byte [esp + 0x27]
add bl, al
cmp dword [esi + 0x38], 0
mov byte [esp + 0x48], bl
je 0x668cde
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x668ce2
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xdc]
mov ebx, dword [esp + 0xd4]
lea eax, [eax + eax*2]
push dword [ecx + eax*8 + 8]
push str.no_such_column:__s
push ebx
call fcn.00649670
add esp, 0xc
mov byte [ebx + 0x11], 1
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0xdc]
xor ecx, ecx
mov edi, dword [esp + 0xd8]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x668cb2
mov dword [eax + 0x1b8], ecx
test ebp, ebp
je 0x66a20b
test esi, esi
je 0x66a1b6
cmp dword [esi + 0x1d0], 0
je 0x66a195
push ebp
push esi
call fcn.006311f0
add esp, 8
jmp 0x66a20b
xor eax, eax
xor ecx, ecx
mov dword [edx + 0x48], eax
movzx eax, bl
push eax
push dword [esp + 0x1c]
mov dword [edx + 0x4c], ecx
push esi
push edi
mov dword [esp + 0x6c], eax
call fcn.00650390
mov esi, dword [esi + 8]
add esp, 0x10
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x4c], ecx
test esi, esi
je 0x668e07
test bl, bl
jne 0x668da5
cmp ecx, 1
jg 0x668da5
cmp dword [esi + 0x24], 0
jne 0x668da5
cmp esi, dword [esp + 0x38]
je 0x668da5
movzx edi, word [esi + 0x32]
xor ebx, ebx
xor edx, edx
test edi, edi
jle 0x668db8
mov ecx, dword [esi + 4]
movzx eax, word [ecx]
test ax, ax
js 0x668d6e
mov edi, dword [esp + 0x18]
cwde
cmp dword [edi + eax*4], ebx
movzx edi, word [esi + 0x32]
jge 0x668d6e
inc edx
add ecx, 2
cmp edx, edi
jl 0x668d45
mov edx, dword [esp + 0x34]
mov byte [edx + ebp + 1], 0
jmp 0x668dc7
mov edi, dword [esp + 0xd4]
inc dword [edi + 0x2c]
movzx eax, word [esi + 0x34]
mov ebx, dword [edi + 0x2c]
add eax, ebx
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0xe4]
cmp eax, 5
je 0x668d9b
cmp eax, 0xa
jne 0x668db4
cmp byte [esi + 0x36], 5
jne 0x668db4
mov dword [esp + 0x64], 1
jmp 0x668db4
inc dword [edi + 0x2c]
movzx eax, word [esi + 0x34]
mov ebx, dword [edi + 0x2c]
add eax, ebx
mov dword [edi + 0x2c], eax
test ebx, ebx
jne 0x668dc3
mov edx, dword [esp + 0x34]
mov byte [edx + ebp + 1], 0
jmp 0x668dc7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x84]
mov edi, dword [esp + 0xd4]
mov ecx, dword [esp + 0x4c]
mov dword [eax + ebp*4], ebx
inc ebp
mov esi, dword [esi + 0x14]
mov bl, byte [esp + 0x48]
test esi, esi
jne 0x668d11
cmp dword [esp + 0x64], 0
je 0x668e07
mov eax, dword [esp + 0x98]
inc eax
push eax
push 1
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [edi + 8]
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x50], edi
test edi, edi
jne 0x668eef
cmp dword [ebp + 0x78], edi
jne 0x668e2f
mov eax, dword [ebp]
test byte [eax + 0x44], 8
jne 0x668e2f
mov byte [ebp + 0x17], 1
mov esi, dword [ebp]
push 0
push 0xe0
push esi
call fcn.006478f0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x50], edi
test edi, edi
jne 0x668e55
mov dword [esp + 0x50], edi
jmp 0x668ee7
push 0x88
lea ebx, [edi + 0x58]
push 0
push ebx
call sub.MSVCRT.dll_memset
mov dword [edi], esi
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x668e74
mov dword [eax + 4], edi
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov dword [edi + 4], 0
mov dword [esi + 4], edi
mov dword [edi + 0xc], ebp
mov dword [edi + 0x14], 0x16bceaa5
mov dword [ebp + 8], edi
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x668eb2
push 0
push 1
push 0
push 0x3e
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x668ee7
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x3e
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
je 0x668c89
cmp byte [ebp + 0x12], 0
jne 0x668efc
or dword [edi + 0x94], 0x10
mov eax, dword [ebp + 0x78]
mov ebx, eax
test eax, eax
jne 0x668f09
mov ebx, ebp
mov eax, ebp
mov edx, dword [esp + 0x70]
mov esi, 1
mov ecx, edx
shl esi, cl
mov ecx, dword [eax + 0x5c]
test esi, ecx
jne 0x668f30
or ecx, esi
mov dword [eax + 0x5c], ecx
cmp edx, 1
jne 0x668f30
push eax
call fcn.0065bc80
add esp, 4
or dword [ebx + 0x58], esi
mov esi, dword [esp + 0x10]
or byte [ebx + 0x14], 1
cmp dword [esi + 0x38], 0
jne 0x668fbb
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x3c]
inc eax
cmp byte [esp + 0x27], 0
mov dword [esp + 0x2c], eax
lea edx, [eax + 1]
mov dword [esp + 0x58], edx
mov dword [ebp + 0x2c], edx
mov dword [esp + 0x28], edx
jne 0x668f72
test ecx, ecx
jne 0x668f72
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x668f89
lea eax, [edx + 1]
mov dword [esp + 0x88], eax
movsx eax, word [esi + 0x2a]
add eax, edx
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov bl, byte [esp + 0x48]
test bl, bl
jne 0x668f99
test ecx, ecx
jne 0x668f99
test eax, eax
je 0x668fa3
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x58], eax
mov ecx, dword [ebp + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x90], eax
movsx eax, word [esi + 0x2a]
add eax, ecx
mov dword [ebp + 0x2c], eax
jmp 0x668fbf
mov bl, byte [esp + 0x48]
cmp dword [esp + 0x74], 0
je 0x668ff7
mov edx, dword [esp + 0x14]
mov eax, ebp
push edx
push dword [esp + 0xe4]
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x1b8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
push esi
push ebp
mov dword [ebp + 0x1b8], eax
call fcn.0065b220
add esp, 0x10
push dword [esp + 0xe0]
lea eax, [esp + 0xb4]
push eax
call fcn.00662600
add esp, 8
test eax, eax
jne 0x66a151
cmp dword [esi + 0x38], eax
je 0x66905c
mov eax, dword [esp + 0xe4]
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
push eax
push dword [esp + 0xe4]
push dword [esp + 0x20]
push dword [esp + 0x8c]
push ebx
push esi
push edi
push ebp
call fcn.0067eeb0
mov ebp, dword [esp + 0x38]
add esp, 0x20
mov ecx, dword [esp + 0x54]
jmp 0x668c9d
mov eax, dword [esp + 0x20]
test byte [eax + 0x1c], 0x80
je 0x669084
cmp dword [ebp + 0x7c], 0
jne 0x669084
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
push eax
push 0
push 0x43
push edi
mov dword [esp + 0x7c], eax
call fcn.0066bba0
add esp, 0x10
test byte [esi + 0x24], 0x20
jne 0x6690ed
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x6690b2
push dword [esp + 0x28]
push dword [esp + 0x30]
push 0
push 0x46
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x669182
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x669182
mov eax, dword [esp + 0x38]
movzx edx, word [eax + 0x32]
mov eax, dword [ebp + 0x2c]
movsx esi, dx
mov dword [esp + 0xa8], edx
lea ecx, [eax + 1]
inc eax
add eax, esi
mov dword [esp + 0x44], ecx
push ecx
mov dword [esp + 0x44], eax
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x28]
push 0
mov dword [esp + 0x68], eax
inc eax
push 0x46
push edi
mov dword [ebp + 0x28], eax
call fcn.0066bba0
push esi
push dword [esp + 0x74]
push 0x6c
push edi
call fcn.0066bba0
push dword [esp + 0x58]
mov esi, dword [ebp + 8]
push ebp
mov dword [esp + 0x90], eax
call fcn.00659d70
mov edx, eax
add esp, 0x28
test edx, edx
je 0x66917e
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x669169
push edx
push 0xfffffffffffffff7
push eax
call fcn.0061ba30
add esp, 0xc
jmp 0x66917e
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov esi, dword [esp + 0x10]
cmp byte [ebp + 0x12], 0
mov eax, 0x1004
jne 0x6691ab
cmp dword [esp + 0x3c], 0
jne 0x6691ab
cmp dword [esp + 0x4c], 0
jne 0x6691ab
test bl, bl
jne 0x6691ab
cmp dword [esp + 0x64], 0
jne 0x6691ab
mov eax, 0x100c
push dword [esp + 0x7c]
push eax
push 0
push 0
push dword [esp + 0xf0]
push dword [esp + 0xec]
push ebp
call fcn.00678ea0
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0xa0], ecx
test ecx, ecx
je 0x66a151
movzx ebx, byte [ecx + 0x31]
mov eax, dword [ecx + 0x18]
mov ebp, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov dword [esp + 0xac], ebp
mov dword [esp + 0x30], ebx
cmp ebx, 2
jne 0x669226
test ebp, ebp
js 0x669226
cmp ebp, ecx
je 0x669226
mov edx, dword [esp + 0x34]
mov eax, ebp
sub eax, dword [esp + 0x8c]
xor ecx, ecx
cmp byte [eax + edx], cl
setne cl
dec ecx
and ebx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
test byte [esi + 0x24], 0x20
jne 0x66925d
mov esi, dword [esp + 0x28]
push esi
push ecx
push 0x7b
push edi
call fcn.0066bba0
add esp, 0x10
test ebx, ebx
jne 0x6692e9
push esi
push dword [esp + 0x30]
push 0x8f
push edi
call fcn.0066bba0
add esp, 0x10
jmp 0x66932c
mov eax, dword [esp + 0xa8]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x66929f
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
add eax, esi
push eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push ecx
push ebp
push edi
call fcn.0064a7e0
mov ecx, dword [esp + 0x28]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x669271
mov ebp, dword [esp + 0xac]
cmp dword [esp + 0x30], 0
je 0x6692f0
mov edx, dword [edi]
cmp byte [edx + 0x49], 0
jne 0x6692d9
mov eax, dword [esp + 0x68]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.0061ba30
add esp, 0xc
mov word [esi], 0xa6
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
cmp ebx, 2
je 0x66933b
jmp 0x66932c
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x28]
call fcn.00657f10
mov esi, dword [esp + 0x50]
add esp, 8
push eax
push dword [esp + 0x48]
push ebx
push esi
push 0x63
push edi
call fcn.0066bc70
push ebx
push esi
push dword [esp + 0x64]
push dword [esp + 0x88]
push 0x7f
push edi
call fcn.0066bd50
add esp, 0x34
push dword [esp + 0xa0]
call fcn.0067b7c0
add esp, 4
mov esi, dword [edi + 0xc]
mov ebx, dword [esi + 0x44]
lea eax, [ebx + 1]
mov dword [esi + 0x44], eax
lea eax, [ebx - 1]
test ebx, eax
jne 0x669368
push 0
lea eax, [ebx*8 + 4]
push eax
push dword [esi + 0x48]
push dword [esi]
call fcn.00647a80
add esp, 0x10
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x669376
mov dword [eax + ebx*4], 0xffffffff
mov eax, dword [esp + 0x74]
or edx, 0xffffffff
sub edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x44], edx
test eax, eax
jne 0x669438
xor esi, esi
test ebx, ebx
je 0x6693ba
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x34]
test eax, eax
js 0x6693ae
sub eax, edx
mov byte [eax + ecx], 0
test ebp, ebp
js 0x6693ba
mov eax, ebp
sub eax, edx
mov byte [eax + ecx], 0
cmp ebx, 2
jne 0x6693e0
mov ecx, dword [esp + 0x98]
xor eax, eax
test ebp, ebp
setns al
sub ecx, eax
test ecx, ecx
jle 0x6693e0
push 0x14
push edi
call fcn.0066bae0
add esp, 8
mov esi, eax
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x98]
push 0
push 0x69
push dword [esp + 0x28]
push dword [esp + 0xf0]
call fcn.0065ba60
add esp, 0x20
test esi, esi
je 0x669430
mov edx, dword [edi + 0x88]
jns 0x669415
lea esi, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x669424
mov eax, 0xb2e43c
jmp 0x66942d
mov eax, dword [edi + 0x58]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x44]
test ebx, ebx
je 0x6694e4
test eax, eax
jne 0x66946a
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x70], eax
je 0x66946a
cmp ebp, eax
mov ebp, dword [esp + 0x40]
je 0x66946e
push dword [esp + 0x78]
push ebp
push edx
push eax
push 0x1d
push edi
call fcn.0066bd50
add esp, 0x18
jmp 0x66946e
mov ebp, dword [esp + 0x40]
cmp ebx, 1
jne 0x66947d
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
jmp 0x6694c5
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x44]
lea eax, [esi + 1]
mov dword [ebx + 0x44], eax
lea eax, [esi - 1]
test esi, eax
jne 0x6694aa
push 0
lea eax, [esi*8 + 4]
push eax
push dword [ebx + 0x48]
push dword [ebx]
call fcn.00647a80
add esp, 0x10
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x6694b8
mov dword [eax + esi*4], 0xffffffff
mov ecx, dword [esp + 0x44]
or eax, 0xffffffff
sub eax, esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x38], 0
mov eax, ebp
jne 0x6694d2
mov eax, dword [esp + 0x28]
push ecx
push eax
push 0x32
push edi
call fcn.0066bba0
add esp, 0x10
jmp 0x66961f
cmp dword [esp + 0x38], 0
je 0x669572
mov esi, dword [edi + 0xc]
mov ebx, dword [esi + 0x44]
lea eax, [ebx + 1]
mov dword [esi + 0x44], eax
lea eax, [ebx - 1]
test ebx, eax
jne 0x66951c
push 0
lea eax, [ebx*8 + 4]
push eax
push dword [esi + 0x48]
push dword [esi]
call fcn.00647a80
add esp, 0x10
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x66952a
mov dword [eax + ebx*4], 0xffffffff
push dword [esp + 0x44]
mov ebp, dword [esp + 0x64]
or esi, 0xffffffff
push ebp
push 0x25
sub esi, ebx
push edi
mov dword [esp + 0x44], esi
call fcn.0066bba0
mov ebx, dword [esp + 0x50]
push ebx
push ebp
push 0x7a
push edi
call fcn.0066bba0
mov edx, dword [esp + 0x34]
push 0
push ebx
push esi
push edx
push 0x1d
push edi
mov dword [esp + 0xd4], eax
call fcn.0066bd50
add esp, 0x38
jmp 0x66961f
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x88]
mov dword [esp + 0x34], esi
cmp dword [eax + 0x30], esi
jg 0x6695a1
mov ebx, dword [esp + 0x28]
push ebx
push edx
push dword [esp + 0x34]
push 0x2a
push edi
call fcn.0062e2b0
mov esi, eax
add esp, 0x14
mov dword [esp + 0x34], esi
jmp 0x6695d3
mov ebx, dword [esp + 0x2c]
lea eax, [esi + 1]
mov dword [edi + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x2a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
mov edx, dword [esp + 0x14]
cmp dword [eax + 0x30], ecx
jg 0x6695f5
push ebx
push esi
push edx
push 0x20
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x66961f
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x1f], 0
je 0x6696d0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x669650
cmp byte [eax], 0x96
jne 0x669650
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0xd4]
push ebp
push dword [eax + 0x1c]
push 0x4b
push dword [ebx + 8]
jmp 0x669676
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0xd4]
push ebp
push eax
push ebx
call fcn.0064ba40
add esp, 0xc
cmp eax, ebp
je 0x66967e
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x66967e
push ebp
push eax
push 0x4c
push ecx
call fcn.0066bba0
add esp, 0x10
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x66969e
push 0
push 0
push ebp
push 0x11
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x6696d0
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x27], 0
jne 0x669788
cmp dword [esp + 0x4c], 0
jne 0x669793
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x66990a
xor ebp, ebp
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xdc]
push eax
push dword [esp + 0x14]
push 3
push 0
push ecx
push dword [esp + 0x50]
push dword [esp + 0xec]
call fcn.00667e70
mov edx, dword [esp + 0x2c]
or ebp, eax
xor eax, eax
add esp, 0x1c
xor esi, esi
cmp ax, word [edx + 0x2a]
jge 0x669818
xor ebx, ebx
cmp ebp, 0xffffffff
je 0x6697eb
cmp esi, 0x20
jge 0x669754
mov eax, 1
mov ecx, esi
shl eax, cl
test ebp, eax
jne 0x6697eb
mov eax, dword [edx + 4]
test byte [eax + ebx + 0xf], 1
jne 0x6697eb
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x6697ad
mov eax, dword [esp + 0x88]
push 0
add eax, esi
push eax
push 0
push 0x46
push edi
call fcn.0062e2b0
jmp 0x669801
cmp dword [esp + 0x4c], 0
je 0x6696f2
push dword [esp + 0x10]
push dword [esp + 0xd8]
call fcn.00650290
add esp, 8
mov ebp, eax
jmp 0x6696f4
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x88]
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
jmp 0x669808
mov eax, dword [esp + 0x88]
add eax, esi
push eax
push esi
push dword [esp + 0x1c]
push edx
push edi
call fcn.0064a7e0
mov edx, dword [esp + 0x24]
add esp, 0x14
movsx eax, word [edx + 0x2a]
inc esi
add ebx, 0x10
cmp esi, eax
jl 0x669735
cmp byte [esp + 0x1f], 0
jne 0x669852
cmp dword [esp + 0x38], 0
jne 0x669852
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x6698cf
mov esi, dword [esp + 0x58]
push 0
push esi
push dword [esp + 0x30]
push 0x4b
push edi
call fcn.0062e2b0
mov edx, dword [esp + 0x24]
add esp, 0x14
mov eax, dword [esp + 0x3c]
push dword [esp + 0xe4]
mov ebx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xd8]
push edx
push 1
push 1
push ebx
push eax
push ebp
call fcn.00667e70
mov edx, eax
xor ecx, ecx
mov eax, dword [esp + 0x2c]
xor esi, esi
add esp, 0x1c
mov dword [esp + 0x2c], edx
mov dword [esp + 0x68], ecx
cmp si, word [eax + 0x2a]
jge 0x669b12
mov esi, dword [esp + 0x90]
mov edi, edi
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x66994e
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x669913
push 0
push esi
push 0
push 0x46
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x669af0
mov esi, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x669852
mov edx, dword [esp + 0x10]
jmp 0x669856
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x669af4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x6699fd
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*8 + 4]
test eax, eax
je 0x6699b0
cmp byte [eax], 0x96
jne 0x6699b0
mov edx, dword [ebp + 8]
mov ebx, dword [eax + 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x669995
push 0
push esi
push ebx
push 0x4b
push edx
call fcn.0062e2b0
add esp, 0x14
jmp 0x669ae9
lea eax, [ecx + 1]
mov dword [edx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x58]
mov dword [eax + ecx*4], 0x4b
jmp 0x669ad1
push esi
push eax
push ebp
call fcn.0064ba40
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x669ae9
mov edx, dword [ebp + 8]
test edx, edx
je 0x669ae9
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x6699f2
push 0
push esi
push ebx
push 0x4c
push edx
call fcn.0062e2b0
add esp, 0x14
jmp 0x669ae9
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
jmp 0x669ac1
test dword [esp + 0x94], 1
je 0x669a6a
cmp ecx, 0x1f
jg 0x669a6a
mov eax, 1
shl eax, cl
test edx, eax
jne 0x669a6a
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jle 0x6698ba
mov ebp, dword [esp + 0xd4]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x669af4
push 0
push esi
push dword [esp + 0x1c]
push ecx
push dword [esp + 0x20]
push ebp
call fcn.0064a710
mov ebx, eax
add esp, 0x18
cmp ebx, esi
je 0x669ae9
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov ebp, dword [edx + 0x88]
cmp dword [ecx + 0x30], ebp
jg 0x669aae
push 0
push esi
push ebx
push 0x4c
push edx
call fcn.0062e2b0
mov ebp, dword [esp + 0xe8]
add esp, 0x14
jmp 0x669ae9
lea ecx, [ebp*4]
lea eax, [ebp + 1]
add ecx, ebp
mov ebp, dword [esp + 0xd4]
mov dword [edx + 0x88], eax
mov eax, dword [edx + 0x58]
mov dword [eax + ecx*4], 0x4c
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0xdc]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc esi
mov ecx, dword [esp + 0x68]
inc ecx
mov dword [esp + 0x68], ecx
movsx eax, word [eax + 0x2a]
cmp ecx, eax
mov eax, dword [esp + 0x10]
jl 0x6698a0
test byte [esp + 0x94], 1
je 0x669c4b
push dword [esp + 0x90]
push eax
push edi
call fcn.006679f0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ebx, dword [esp + 0x34]
mov esi, eax
test eax, eax
je 0x669b87
mov edi, dword [esp + 0x10]
cmp byte [esi + 8], 0x6e
jne 0x669b7c
cmp byte [esi + 9], 1
jne 0x669b7c
push dword [esp + 0xdc]
push dword [esi + 0x10]
call fcn.0060f580
add esp, 8
test eax, eax
je 0x669b7c
push ebx
push dword [esp + 0xe8]
push dword [esp + 0x30]
push edi
push esi
push ebp
call fcn.006454c0
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x669b43
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x38], 0
je 0x669bac
push dword [esp + 0x78]
push dword [esp + 0x44]
push ebx
push dword [esp + 0x20]
push 0x1d
push edi
call fcn.0066bd50
mov edx, dword [esp + 0x2c]
add esp, 0x18
jmp 0x669c06
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x669bd4
push dword [esp + 0x28]
push ebx
push dword [esp + 0x1c]
push 0x20
push edi
call fcn.0062e2b0
mov edx, dword [esp + 0x28]
add esp, 0x14
jmp 0x669c06
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ebp, dword [esp + 0x10]
xor eax, eax
mov ebx, dword [esp + 0x18]
xor esi, esi
cmp ax, word [ebp + 0x2a]
jge 0x669c4f
cmp dword [ebx + esi*4], 0
jge 0x669c3c
movsx eax, word [ebp + 0x28]
cmp esi, eax
je 0x669c3c
mov eax, dword [esp + 0x90]
add eax, esi
push eax
push esi
push edx
push ebp
push edi
call fcn.0064a7e0
add esp, 0x14
movsx eax, word [ebp + 0x2a]
inc esi
mov edx, dword [esp + 0x14]
cmp esi, eax
jl 0x669c18
jmp 0x669c4f
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x74], 0
mov ebp, dword [esp + 0x34]
jne 0x669ea2
push ebx
mov ebx, dword [esp + 0xd8]
lea eax, [esp + 0x68]
push eax
push ebp
push dword [esp + 0xf0]
xor esi, esi
push dword [esp + 0x58]
push dword [esp + 0x3c]
push dword [esp + 0x70]
push dword [esp + 0x98]
push dword [esp + 0x34]
push dword [esp + 0xa8]
push dword [esp + 0x38]
push ebx
call fcn.00654ce0
add esp, 0x30
cmp dword [esp + 0x4c], esi
je 0x669cc0
push dword [esp + 0x5c]
push dword [esp + 0x1c]
push esi
push dword [esp + 0x34]
push dword [esp + 0x20]
push ebx
call fcn.0064f820
add esp, 0x18
mov ebx, dword [esp + 0x64]
test ebx, ebx
jne 0x669cd2
cmp byte [esp + 0x48], bl
je 0x669d52
cmp dword [esp + 0x38], esi
je 0x669cf5
push dword [esp + 0x78]
push dword [esp + 0x44]
push 0
push dword [esp + 0x20]
push 0x1d
push edi
call fcn.0066bd50
add esp, 0x18
mov esi, eax
jmp 0x669d52
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x88]
cmp dword [eax + 0x30], esi
jg 0x669d1c
push dword [esp + 0x28]
push 0
push dword [esp + 0x1c]
push 0x20
push edi
call fcn.0062e2b0
add esp, 0x14
mov esi, eax
jmp 0x669d52
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xffffffffffffffff
push dword [esp + 0x88]
push dword [esp + 0x84]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0xe8]
call fcn.006569e0
add esp, 0x18
cmp dword [esp + 0x4c], 1
jg 0x669d88
mov al, byte [esp + 0x48]
test al, al
je 0x669de5
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x669dab
push 0
push 0
push dword [esp + 0x1c]
push 0x76
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x669de1
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esp + 0x48]
test ebx, ebx
jne 0x669ded
test al, al
je 0x669e15
mov edx, dword [edi + 0x88]
test esi, esi
jns 0x669dfa
lea esi, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x669e09
mov eax, 0xb2e43c
jmp 0x669e12
mov eax, dword [edi + 0x58]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp dword [esp + 0x4c], 0
mov esi, dword [esp + 0xd4]
je 0x669e3e
push dword [esp + 0x5c]
push dword [esp + 0x1c]
push dword [esp + 0x60]
push 0
push dword [esp + 0x20]
push esi
call fcn.0064f820
add esp, 0x18
mov ebx, dword [esp + 0x30]
xor eax, eax
cmp ebx, 2
push 0
setne al
push 0
dec eax
and eax, 2
or eax, 4
push eax
push dword [esp + 0x90]
push dword [esp + 0x68]
push dword [esp + 0x90]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.00646240
add esp, 0x24
cmp dword [esp + 0x4c], 0
je 0x669ead
push dword [esp + 0x5c]
push dword [esp + 0x1c]
push dword [esp + 0x30]
push dword [esp + 0xe8]
push dword [esp + 0x20]
push esi
call fcn.0064f7a0
add esp, 0x18
jmp 0x669ead
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0x20]
test byte [eax + 0x1c], 0x80
je 0x669f16
cmp dword [esi + 0x7c], 0
jne 0x669f16
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x669ee0
push 0
push 1
push dword [esp + 0x74]
push 0x50
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x669f16
mov edx, dword [esp + 0x6c]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x3c], 0
je 0x669f6d
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
cmp byte [edi + 8], 0x6e
jne 0x669f5e
cmp byte [edi + 9], 2
jne 0x669f5e
push dword [esp + 0xdc]
push dword [edi + 0x10]
call fcn.0060f580
add esp, 8
test eax, eax
je 0x669f5e
push ebp
push dword [esp + 0xe8]
push dword [esp + 0x30]
push ebx
push edi
push esi
call fcn.006454c0
add esp, 0x18
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x669f25
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
cmp ebx, 1
je 0x66a073
mov eax, dword [edi + 0xc]
cmp ebx, 2
jne 0x669faa
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x669f96
lea eax, [ebp*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
push dword [esp + 0xa0]
call fcn.0067b7c0
add esp, 4
jmp 0x66a073
cmp dword [esp + 0x38], 0
je 0x66a024
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x669fcd
lea eax, [ebp*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x669ff9
mov edx, dword [esp + 0x9c]
push 0
push edx
push dword [esp + 0x68]
push 7
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x66a073
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + ecx*4], 7
mov dword [eax + ecx*4 + 8], edx
jmp 0x66a063
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x66a041
push 0
push ebp
push 0
push 0xd
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x66a073
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x66a092
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
cmp byte [esi + 0x12], 0
jne 0x66a0ad
cmp dword [esi + 0x7c], 0
jne 0x66a0ad
cmp dword [esi + 0x74], 0
je 0x66a0ad
push esi
call fcn.0060b8e0
add esp, 4
mov eax, dword [esp + 0x20]
test byte [eax + 0x1c], 0x80
je 0x66a165
cmp dword [esi + 0x7c], 0
jne 0x66a165
cmp byte [esi + 0x12], 0
jne 0x66a165
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x66a0f2
push 0
push 1
push dword [esp + 0x74]
push 0x4e
push edi
call fcn.0062e2b0
add esp, 0x14
jmp 0x66a128
mov edx, dword [esp + 0x6c]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 1
push edi
call fcn.00675d90
mov eax, dword [edi]
add esp, 8
cmp byte [eax + 0x49], 0
jne 0x66a151
push 0
push 1
push 0xffffffffffffffff
push str.rows_updated
push dword [edi + 0x64]
call fcn.00674740
add esp, 0x14
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x54]
jmp 0x668c96
mov ebp, dword [esp + 0x18]
mov esi, eax
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
mov ecx, dword [esp + 0x54]
jmp 0x668ca1
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
jmp 0x668ca1
cmp ebp, dword [esi + 0x128]
jb 0x66a1b6
cmp ebp, dword [esi + 0x12c]
jae 0x66a1b6
mov eax, dword [esi + 0x124]
mov dword [ebp], eax
mov dword [esi + 0x124], ebp
jmp 0x66a20b
cmp dword [0xb26600], 0
je 0x66a201
mov eax, dword [0xb2e130]
test eax, eax
je 0x66a1d2
push eax
call dword [0xb2665c]
add esp, 4
push ebp
call dword [0xb26638]
sub dword [0xb2df80], eax
dec dword [0xb2dfa4]
push ebp
call dword [0xb26630]
mov eax, dword [0xb2e130]
add esp, 8
test eax, eax
je 0x66a20b
push eax
call dword [0xb26664]
jmp 0x66a208
push ebp
call dword [0xb26630]
add esp, 4
push edi
push esi
call fcn.006668d0
add esp, 8
test ebx, ebx
je 0x66a223
push ebx
push esi
call fcn.006186f0
add esp, 8
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x66a238
push eax
push esi
call fcn.0064cdb0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret