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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
xor esi, esi
mov byte [esp + 0xe], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], eax
call fcn.1005cba0
mov edx, dword [edi + 0x54]
lea ecx, [edx + 1]
mov dword [edi + 0x54], ecx
mov ecx, dword [eax + 0x20]
mov edi, dword [eax + 0x18]
cmp dword [edi + 0x58], ecx
jg 0x1006f597
push esi
push esi
push edx
push 0x2c
mov esi, eax
call fcn.10024290
add esp, 0x10
mov dword [esp + 0x40], eax
jmp 0x1006f5bf
lea edi, [ecx + 1]
mov dword [eax + 0x20], edi
mov eax, dword [eax + 4]
lea edi, [ecx + ecx*4]
lea eax, [eax + edi*4]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov word [eax], 0x2c
mov dword [esp + 0x40], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ecx + 0x40]
shl eax, 4
xor edx, edx
add eax, ebx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
cmp ebx, eax
jae 0x1006f82b
mov dword [esp + 0x20], 1
mov edx, dword [edi]
or edx, dword [edi + 4]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jne 0x1006f6a6
test byte [ebx + 0x14], 2
jne 0x1006f6a6
test byte [eax + 4], 1
jne 0x1006f6a6
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x30]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x78], 3
mov dword [esp + 0x68], 0x100399f0
mov dword [esp + 0x6c], 0x10039b00
mov dword [esp + 0x7c], eax
call fcn.10035960
add esp, 8
cmp byte [esp + 0x70], 0
je 0x1006f6a6
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
push 0
push ecx
push eax
call fcn.10038b90
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push edx
call fcn.10038690
add esp, 0x14
mov dword [esp + 0x1c], eax
mov edx, dword [ebx + 8]
cmp edx, dword [esi + 0x30]
jne 0x1006f813
test byte [ebx + 0x12], 0x82
je 0x1006f813
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x1006f813
mov eax, dword [ebx + 0xc]
test eax, eax
js 0x1006f813
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 4]
mov esi, dword [ebx]
add eax, eax
mov dl, byte [ecx + eax*8 + 0xd]
mov byte [esp + 0x44], dl
mov eax, dword [esp + 0x44]
push eax
call fcn.10037fb0
add esp, 4
test eax, eax
je 0x1006f813
mov esi, dword [ebx + 0xc]
cmp esi, 0x40
jl 0x1006f71f
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x80000000
jmp 0x1006f735
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.100b0690
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
cmp byte [esp + 0xe], 0
jne 0x1006f763
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
add esi, esi
mov edx, dword [ecx + esi*8]
push edx
push eax
push str.automatic_index_on__s__s_
push 0x11c
call sym.SQLite3Encrypt.dll_sqlite3_log
add esp, 0x10
mov byte [esp + 0xe], 1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
and eax, dword [esp + 0x48]
and ecx, dword [esp + 0x4c]
or eax, ecx
jne 0x1006f813
movzx eax, word [edi + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x20]
jge 0x1006f7f0
mov esi, dword [esp + 0x20]
add esi, 7
and esi, 0xfffffff8
lea ecx, [esi*4]
push 0
push ecx
mov eax, edx
call fcn.10004420
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10070136
movzx edx, word [edi + 0x2c]
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x2c]
add edx, edx
add edx, edx
push edx
push eax
push ecx
call fcn.100aace0
mov eax, dword [edi + 0x30]
lea edx, [edi + 0x38]
add esp, 0xc
cmp eax, edx
je 0x1006f7e5
mov ecx, dword [esp + 0x14]
call fcn.10004130
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x30], eax
mov word [edi + 0x2c], si
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x30]
mov edx, dword [esp + 0x50]
inc dword [esp + 0x20]
or dword [esp + 0x48], edx
mov dword [ecx + eax*4], ebx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
or dword [esp + 0x4c], eax
mov esi, dword [ebp + 0x10]
add ebx, 0x30
cmp ebx, dword [esp + 0x28]
jb 0x1006f608
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov word [edi + 0x28], ax
mov word [edi + 0x18], ax
mov dword [edi + 0x24], 0x4241
mov eax, dword [esi + 0x40]
mov esi, dword [esi + 0x44]
not ecx
or ecx, 0x80000000
and ecx, esi
not edx
mov edi, edx
and edi, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
movzx eax, word [ecx + 0x22]
mov edx, 0x3f
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], eax
cmp dx, ax
jge 0x1006f878
mov dword [esp + 0x20], edx
jmp 0x1006f87d
cwde
mov dword [esp + 0x20], eax
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jle 0x1006f8a8
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.100b0690
and edx, dword [esp + 0x54]
and eax, edi
or eax, edx
je 0x1006f8a1
inc dword [esp + 0x10]
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x1006f885
and esi, 0x80000000
xor eax, eax
or eax, esi
je 0x1006f8c5
movsx ecx, word [esp + 0x44]
mov edx, dword [esp + 0x10]
lea eax, [edx + ecx - 0x3f]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
inc ecx
movzx edi, cx
mov ecx, dword [edx]
movsx esi, di
lea eax, [esi*4 + 7]
and eax, 0xfffffff8
lea edx, [esi + esi*4 + 9]
and edx, 0xfffffff8
mov dword [esp + 0x44], eax
lea eax, [edx + eax + 0x40]
cdq
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x1006f905
push edx
push eax
mov eax, ecx
call fcn.10004420
add esp, 8
jmp 0x1006f968
mov ecx, eax
or ecx, edx
je 0x1006fa68
test edx, edx
ja 0x1006fa68
jb 0x1006f924
cmp eax, 0x7fffff00
jae 0x1006fa68
cmp dword [0x100d33d0], 0
je 0x1006fa59
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x1006f944
push eax
call dword [0x100d3428]
add esp, 4
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x2c]
call fcn.10003ca0
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x1006f964
push eax
call dword [0x100d3430]
add esp, 4
mov eax, dword [esp + 0x2c]
mov ebx, eax
test ebx, ebx
je 0x10070136
mov edx, dword [esp + 0x14]
push edx
push 0
push ebx
call fcn.100a6a70
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
lea eax, [ebx + 0x40]
mov dword [ebx + 0x20], eax
add eax, dword [esp + 0x50]
mov word [ebx + 0x34], di
mov dword [ebx + 8], eax
lea eax, [eax + esi*2 + 2]
mov dword [ebx + 4], eax
lea eax, [eax + esi*2]
mov dword [ebx + 0x1c], eax
xor eax, eax
dec edi
mov word [ebx + 0x32], di
mov dword [ecx + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], str.auto_index
mov dword [ebx + 0xc], edx
mov edi, dword [eax + 0x14]
add esp, 0xc
cmp edi, dword [esp + 0x28]
jae 0x1006fb77
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0x10]
cmp ecx, dword [edx + 0x30]
jne 0x1006fb6a
test byte [edi + 0x12], 0x82
je 0x1006fb6a
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x1006fb6a
mov eax, dword [edi + 0xc]
test eax, eax
js 0x1006fb6a
mov esi, dword [edi]
mov ecx, edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 4]
add eax, eax
mov dl, byte [ecx + eax*8 + 0xd]
mov eax, dword [esi + 0xc]
mov byte [esp + 0xf], dl
call fcn.10037c50
mov cl, al
mov eax, dword [esi + 0x10]
mov byte [esp + 0xe], cl
test eax, eax
je 0x1006fa6f
call fcn.10037c50
test al, al
je 0x1006fa84
mov cl, byte [esp + 0xe]
test cl, cl
je 0x1006fa8b
cmp al, 0x43
jge 0x1006fa52
cmp cl, 0x43
jl 0x1006fa95
mov byte [esp + 0xe], 0x43
jmp 0x1006fa9a
push eax
call dword [0x100d33f8]
add esp, 4
jmp 0x1006f968
xor eax, eax
jmp 0x1006f968
test dword [esi + 4], 0x800
je 0x1006fa91
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
jmp 0x1006fa38
cmp byte [esp + 0xe], 0
je 0x1006fa95
add byte [esp + 0xe], al
jmp 0x1006fa9a
test cl, cl
jne 0x1006fa9a
mov byte [esp + 0xe], 0x41
movsx eax, byte [esp + 0xe]
sub eax, 0x41
je 0x1006fac5
dec eax
je 0x1006fab3
xor eax, eax
cmp byte [esp + 0xf], 0x43
setge al
jmp 0x1006fabd
xor eax, eax
cmp byte [esp + 0xf], 0x42
sete al
test eax, eax
je 0x1006fb6a
mov ecx, dword [edi + 0xc]
cmp ecx, 0x40
jl 0x1006fad6
xor eax, eax
mov edx, 0x80000000
jmp 0x1006fae2
mov eax, 1
xor edx, edx
call fcn.100b0690
mov ecx, eax
and ecx, dword [esp + 0x48]
mov esi, edx
and esi, dword [esp + 0x4c]
or ecx, esi
jne 0x1006fb6a
or dword [esp + 0x48], eax
or dword [esp + 0x4c], edx
mov ecx, dword [edi]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x14]
mov dx, word [edi + 0xc]
mov word [eax + esi*2], dx
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov eax, 0x100
test dword [ecx + 4], eax
jne 0x1006fb42
test esi, esi
je 0x1006fb30
test dword [esi + 4], eax
je 0x1006fb30
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
jmp 0x1006fb46
mov edx, dword [ebp + 8]
push edx
call fcn.10037e00
add esp, 4
test eax, eax
jne 0x1006fb52
mov ecx, esi
mov eax, dword [ebp + 8]
push eax
call fcn.10037e00
add esp, 4
test eax, eax
je 0x1006fb56
mov eax, dword [eax]
jmp 0x1006fb5b
mov eax, 0x100b8da4
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x20]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x14], ecx
add edi, 0x30
cmp edi, dword [esp + 0x28]
jb 0x1006f9d7
mov esi, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x20], edi
jle 0x1006fbba
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.100b0690
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x54]
or eax, edx
je 0x1006fbaf
mov eax, dword [ebx + 4]
mov word [eax + esi*2], di
mov ecx, dword [ebx + 0x20]
mov dword [ecx + esi*4], 0x100b8da4
inc esi
inc edi
cmp edi, dword [esp + 0x20]
jl 0x1006fb83
mov dword [esp + 0x14], esi
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 0x44]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x1006fbff
mov ecx, dword [esp + 0x24]
mov eax, 0x3f
cmp ax, word [ecx + 0x22]
jge 0x1006fbff
jmp 0x1006fbe0
mov edx, dword [ebx + 4]
mov word [edx + esi*2], ax
mov edx, dword [ebx + 0x20]
mov dword [edx + esi*4], 0x100b8da4
movsx edx, word [ecx + 0x22]
inc eax
inc esi
cmp eax, edx
jl 0x1006fbe0
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 4]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov edx, dword [ebx + 0x20]
mov eax, dword [ebp + 0x1c]
mov dword [edx + esi*4], 0x100b8da4
mov ecx, dword [edi + 0x48]
mov esi, dword [esp + 0x34]
mov dword [eax + 8], ecx
inc dword [edi + 0x48]
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x18]
inc ecx
cmp dword [edx + 0x58], eax
jg 0x1006fc51
mov eax, dword [esp + 0x2c]
push 0
push ecx
push eax
push 0x38
call fcn.10024290
add esp, 0x10
jmp 0x1006fc7b
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x38
mov eax, dword [edi + 8]
push ebx
push edi
mov dword [esp + 0x30], eax
call fcn.10048910
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
add esp, 8
cmp byte [edx + 0x45], 0
je 0x1006fca6
mov ecx, eax
mov eax, 0xfffffffa
call fcn.10024cd0
jmp 0x1006fcda
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 4]
lea edx, [edx + edx*4 - 5]
cmp byte [ecx + edx*4 + 1], 0
lea ecx, [ecx + edx*4]
je 0x1006fccf
mov edx, dword [esp + 0x28]
push eax
push edx
mov eax, 0xfffffffa
call fcn.10024ec0
add esp, 8
jmp 0x1006fcda
test eax, eax
je 0x1006fcda
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfa
inc dword [edi + 0x6c]
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [ecx + 0x2c]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edx, dword [edx + 4]
lea eax, [eax + eax*4]
add eax, eax
test byte [edx + eax*8 + 0x30], 0x10
lea eax, [edx + eax*8 + 8]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x28], eax
je 0x1006fde0
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [edx + 0x58], ecx
jg 0x1006fd28
push 0
push 0
push 0
push 0x16
call fcn.10024290
add esp, 0x10
jmp 0x1006fd50
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x16
mov eax, ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x20]
cmp dword [edx + 0x58], eax
jg 0x1006fd7a
mov eax, dword [esp + 0x24]
push ecx
push 0
push eax
push 0x10
call fcn.10024290
add esp, 0x10
jmp 0x1006fda4
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov word [eax], 0x10
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x1006fdc6
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push 0x12
call fcn.10024290
add esp, 0x10
xor edx, edx
jmp 0x1006fe2d
lea edx, [ecx + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x24]
mov word [eax], 0x12
jmp 0x1006fe1a
mov eax, dword [ecx + 4]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], eax
cmp dword [edx + 0x58], ecx
jg 0x1006fe02
push 0
push 0
push eax
push 0x6c
call fcn.10024290
add esp, 0x10
xor edx, edx
jmp 0x1006fe2d
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x44]
mov word [eax], 0x6c
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax + 3], dl
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov eax, ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x1c], edx
je 0x1006fea5
mov ecx, dword [esi + 0x18]
mov esi, dword [ecx + 0x74]
lea eax, [esi + 1]
mov dword [ecx + 0x74], eax
lea eax, [esi - 1]
mov dword [esp + 0x2c], ecx
test esi, eax
jne 0x1006fe72
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx]
lea edx, [esi*8 + 4]
push 0
push edx
call fcn.100045e0
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [ecx + 0x78], eax
xor edx, edx
mov ecx, dword [ecx + 0x78]
cmp ecx, edx
je 0x1006fe80
mov dword [ecx + esi*4], 0xffffffff
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
sub eax, esi
push 0x10
push eax
push edx
push edi
mov dword [esp + 0x48], eax
call fcn.1003d460
mov eax, dword [esp + 0x40]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov al, byte [edi + 0x13]
test al, al
jne 0x1006feb8
inc dword [edi + 0x4c]
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x10], eax
jmp 0x1006fec8
dec al
movzx ecx, al
mov byte [edi + 0x13], al
mov edx, dword [edi + ecx*4 + 0x1c]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push eax
push ecx
push ebx
xor eax, eax
mov ebx, edi
call fcn.1004aa10
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x4c]
mov edx, dword [esi + 0x18]
mov edi, eax
mov eax, dword [esi + 0x20]
add esp, 0x18
cmp dword [edx + 0x58], eax
jg 0x1006ff0f
mov eax, dword [esp + 0x10]
push 0
push eax
push ecx
push 0x6e
call fcn.10024290
add esp, 0x10
jmp 0x1006ff38
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov byte [eax + 3], dl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x6e
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
jne 0x1006ff4e
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x10
cmp dword [esp + 0x1c], 0
je 0x1006ff78
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x1006ff71
mov edx, dword [esp + 0x38]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x60], eax
mov ecx, dword [esp + 0x28]
test byte [ecx + 0x28], 0x10
je 0x1007002e
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x1006ff92
mov eax, dword [esi + 0x20]
dec eax
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x1006ffa1
mov eax, 0x100d87f0
jmp 0x1006ffaa
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
add edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov dword [eax + 8], edi
mov eax, dword [ecx + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push edx
mov edi, 1
mov edx, ebx
mov ecx, esi
call fcn.1006f450
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
add esp, 8
cmp dword [ecx + 0x58], eax
jg 0x1006fffa
push 0
push ebx
push 0
push 0xd
call fcn.10024290
mov eax, dword [esp + 0x38]
add esp, 0x10
and dword [eax + 0x28], 0xffffffef
mov edi, ebx
jmp 0x1007007c
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x24]
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xd
mov eax, dword [esp + 0x28]
and dword [eax + 0x28], 0xffffffef
jmp 0x1007007c
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x18]
mov edi, dword [esp + 0x24]
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx + 4]
lea ecx, [edi + 1]
cmp dword [ebx + 0x58], eax
jg 0x10070056
push 0
push ecx
push edx
push 7
call fcn.10024290
add esp, 0x10
jmp 0x1007007c
lea ebx, [eax + 1]
mov dword [esi + 0x20], ebx
mov ebx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 7
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
jne 0x10070092
mov eax, dword [esi + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + edx*4 - 0x11], 3
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
dec ecx
mov dword [edx + 0x60], ecx
mov ecx, dword [esi + 0x20]
mov eax, edi
test edi, edi
jns 0x100700a8
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x100700b7
mov eax, 0x100d87f0
jmp 0x100700c0
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
cmp dword [esp + 0x10], 0
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
je 0x100700f8
mov bl, byte [eax + 0x13]
cmp bl, 8
jae 0x100700f8
mov edi, dword [esp + 0x10]
xor ecx, ecx
lea edx, [eax + 0x7c]
mov edi, edi
cmp dword [edx + 0xc], edi
je 0x10070124
inc ecx
add edx, 0x14
cmp ecx, 0xa
jl 0x100700e0
movzx ecx, bl
mov dword [eax + ecx*4 + 0x1c], edi
inc byte [eax + 0x13]
call fcn.1003b610
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec edx
mov dword [eax + 0x60], edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x20]
test eax, eax
jns 0x10070115
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x1007012a
mov eax, 0x100d87f0
jmp 0x10070133
mov byte [edx + 6], 1
jmp 0x100700f8
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test edi, edi
je 0x100702f8
test dword [edi + 4], 0x4000
jne 0x10070243
mov ecx, dword [edi + 0xc]
push ecx
push esi
call fcn.10038a50
mov edx, dword [edi + 0x10]
push edx
push esi
call fcn.10038a50
add esp, 0x10
test dword [edi + 4], 0x10000
je 0x1007021c
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1007021c
test esi, esi
je 0x100701c4
cmp dword [esi + 0x1c8], 0
je 0x1007019e
mov eax, ebx
mov ecx, esi
call fcn.100040f0
jmp 0x1007021c
cmp ebx, dword [esi + 0x120]
jb 0x100701c4
cmp ebx, dword [esi + 0x124]
jae 0x100701c4
mov eax, dword [esi + 0x11c]
mov dword [ebx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ebx
jmp 0x1007021c
cmp dword [0x100d33d0], 0
je 0x10070212
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x100701e0
push eax
call dword [0x100d3428]
add esp, 4
push ebx
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push ebx
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x1007021c
push eax
call dword [0x100d3430]
jmp 0x10070219
push ebx
call dword [0x100d33fc]
add esp, 4
test dword [edi + 4], 0x800
je 0x10070236
mov ecx, dword [edi + 0x14]
push 1
push ecx
push esi
call fcn.100598f0
add esp, 0xc
jmp 0x10070243
mov edx, dword [edi + 0x14]
push edx
push esi
call fcn.10039850
add esp, 8
test dword [edi + 4], 0x8000
jne 0x100702f8
test esi, esi
je 0x10070298
cmp dword [esi + 0x1c8], 0
je 0x1007026d
mov eax, edi
mov ecx, esi
call fcn.100040f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, dword [esi + 0x120]
jb 0x10070298
cmp edi, dword [esi + 0x124]
jae 0x10070298
mov eax, dword [esi + 0x11c]
mov dword [edi], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x100d33d0], 0
je 0x100702ee
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x100702b4
push eax
call dword [0x100d3428]
add esp, 4
push edi
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push edi
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x100702f8
push eax
call dword [0x100d3430]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x100d33fc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret