Function at 0x10065790
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, edx
mov dword [esp + 0x40], edi
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xf], 1
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
inc ecx
mov dword [esp + 0x4c], ecx
inc ecx
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x30], ecx
inc ecx
mov dword [esp + 0x5c], ecx
inc ecx
mov dword [esp + 0x14], ecx
inc ecx
mov dword [esp + 0x60], ecx
inc ecx
mov dword [esp + 0x3c], ecx
inc ecx
mov dword [esp + 0x54], ecx
inc ecx
mov dword [esp + 0x50], ecx
inc ecx
mov esi, dword [ebx + 8]
cmp eax, ecx
mov edx, dword [ebx]
cmovle eax, ecx
mov dword [esp + 0x34], edx
mov dword [ebp + 0x10], ecx
mov dword [ebx + 0x2c], eax
test esi, esi
jne 0x10065818
cmp dword [ebx + 0x78], esi
jne 0x10065807
test byte [edx + 0x50], 8
jne 0x10065807
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.1003f600
mov esi, eax
test esi, esi
je 0x100667d2
test edi, edi
je 0x100667d2
cmp byte [edi + 0x2b], 0
jne 0x100667d2
mov edx, dword [edi]
test edx, edx
je 0x1006584c
push 0x5c
push 0x10129d4c
mov ecx, str.sqlite__
call fcn.10075780
add esp, 8
test eax, eax
je 0x100667d2
mov ecx, dword [edi + 0x3c]
mov edx, 0xffff8000
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x1006587c
mov eax, dword [esp + 0x34]
xor edx, edx
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x1006587c
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x10065870
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x34]
mov edi, edx
mov edx, dword [esp + 0x40]
add edi, edi
mov ecx, ebx
mov eax, dword [eax + 0x10]
push dword [eax + edi*8]
push 0
push dword [edx]
mov edx, 0x1c
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x100667d2
mov ecx, dword [esp + 0x28]
cmp ecx, 1
je 0x100658d8
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*8 + 4]
cmp byte [eax + 9], 0
je 0x100658d8
mov eax, dword [esp + 0x40]
mov edx, ecx
mov ecx, ebx
push dword [eax]
push 0
push dword [eax + 0x14]
call fcn.10067f90
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov edx, eax
mov edi, dword [esp + 0x40]
inc eax
mov dword [ebp + 0x14], eax
push 0x70
push edi
push dword [esp + 0x30]
lea ecx, [eax + 1]
mov dword [esp + 0x78], edx
mov eax, dword [ebx + 0x28]
cmp eax, ecx
cmovle eax, ecx
mov ecx, ebx
mov dword [ebx + 0x28], eax
call fcn.1007b650
mov ebx, dword [edi]
lea eax, [esi + 0x70]
mov edx, dword [esi + 0x6c]
lea edi, [esi + 0x6c]
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
cmp dword [eax], edx
jg 0x1006593a
push 0
push dword [esp + 0x40]
mov edx, 0x75
mov ecx, esi
push 0
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x10065970
lea eax, [edx + 1]
mov dword [edi], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push ebx
mov ecx, esi
call fcn.10040430
mov edx, dword [esp + 0x48]
add esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [esp + 0x20], edx
test edx, edx
je 0x10066563
test eax, eax
je 0x1006599f
cmp eax, edx
jne 0x10066554
movzx eax, byte [esp + 0xf]
xor ecx, ecx
cmp dword [edx + 0x24], ecx
cmovne ecx, eax
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x40]
test byte [ecx + 0x1c], 0x80
je 0x100659d1
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x100659d1
movzx ebx, word [edx + 0x32]
mov eax, ecx
mov dword [esp + 0x48], ebx
mov ecx, ebx
jmp 0x100659e7
test byte [edx + 0x38], 8
movzx eax, word [edx + 0x34]
mov dword [esp + 0x48], eax
mov ecx, eax
mov eax, edx
je 0x100659e7
movzx ecx, word [edx + 0x32]
mov ebx, dword [eax]
dec ecx
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov dword [esp + 0x44], ecx
cmp dword [eax], edx
jg 0x10065a13
push 0
push dword [esp + 0x58]
mov edx, 0x75
mov ecx, esi
push 0
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x10065a49
lea eax, [edx + 1]
mov dword [edi], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x54]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push ebx
mov ecx, esi
call fcn.10040430
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [ebp + 0x10]
add ecx, dword [esp + 0x44]
mov eax, dword [edx + 0x2c]
cmp eax, ecx
cmovle eax, ecx
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
mov edx, dword [edx + 0x2c]
cmp dword [eax], ecx
jg 0x10065a96
push dword [esp + 0x28]
mov ecx, esi
push edx
push dword [ebp + 0x14]
mov edx, 0x70
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065ac3
mov ebx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov ebx, dword [eax + 8]
call fcn.10071680
mov edx, eax
test edx, edx
je 0x10065b05
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x10065af3
push edx
mov edx, 0xfffffff8
call fcn.100401d0
add esp, 4
jmp 0x10065b05
mov eax, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [edi]
inc ebx
mov edx, dword [esp + 0x48]
cmp dword [eax], ecx
jg 0x10065b2d
push 0
push ebx
push edx
mov edx, 0x47
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065b57
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
movzx edx, word [eax + 0x32]
mov eax, dword [esp + 0x10]
cmp dword [eax], ecx
jg 0x10065b81
push 0
push dword [esp + 0x60]
mov ecx, esi
push edx
mov edx, 0x47
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065bb3
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov dword [esp + 0x68], ecx
cmp dword [eax], ecx
jg 0x10065be0
push 0
push 0
push dword [ebp + 0x14]
mov edx, 0x24
mov ecx, esi
call fcn.1003f7e0
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x10065c11
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x24
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 eax, dword [esp + 0x10]
mov ecx, dword [edi]
cmp dword [eax], ecx
jg 0x10065c33
push 1
push dword [esp + 0x18]
mov ecx, esi
push edx
mov edx, 0x62
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065c65
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [edi]
mov edx, dword [eax + 0x1f0]
mov eax, dword [esp + 0x10]
cmp dword [eax], ecx
jg 0x10065c91
push 0
push dword [esp + 0x64]
mov ecx, esi
push edx
mov edx, 0x47
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065cc3
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
xor edx, edx
push 0
push 0x1012d854
push 4
push dword [esp + 0x58]
push ebx
call fcn.1003fa20
mov ebx, dword [esp + 0x24]
add esp, 0x14
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10065d02
push 0
push dword [esp + 0x34]
mov edx, 0x47
mov ecx, esi
push 0
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065d34
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x44]
mov eax, dword [edi]
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x1006616a
mov eax, dword [esp + 0x1c]
push 0
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x4c], eax
lea eax, [ecx*4]
mov ecx, dword [esp + 0x38]
push eax
call fcn.1001d1c0
add esp, 8
mov dword [esp + 0x58], eax
test eax, eax
je 0x1006654d
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10065d93
push 0
push 0
push 0
mov edx, 9
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065dc5
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x44], 1
mov ecx, dword [edi]
mov dword [esp + 0x38], ecx
jne 0x10065e32
mov eax, dword [esp + 0x20]
cmp word [eax + 0x32], 1
jne 0x10065e32
cmp byte [eax + 0x36], 0
je 0x10065e32
cmp dword [ebx], ecx
jg 0x10065e01
push 0
push dword [esp + 0x4c]
mov edx, 0x33
mov ecx, esi
push dword [ebp + 0x10]
call fcn.1003f7e0
add esp, 0xc
jmp 0x10065e32
mov edx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
mov dword [esp + 0x2c], eax
nop dword [eax + eax]
lea ecx, [eax*4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
mov eax, dword [eax + 0x20]
mov edx, dword [ecx + eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], edx
mov ecx, dword [eax]
mov bl, byte [ecx + 0xb1]
mov bh, byte [ecx + 0x54]
movzx eax, bl
push eax
push edx
mov dl, bh
call fcn.10071ad0
add esp, 8
mov dword [esp + 0x64], eax
test bl, bl
jne 0x10065ea0
test eax, eax
je 0x10065e89
cmp dword [eax + 0xc], 0
jne 0x10065ea0
push dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
mov dl, bh
push eax
call fcn.10071be0
add esp, 8
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10065ec9
push 0
push dword [esp + 0x34]
mov edx, 0x47
mov ecx, esi
push dword [esp + 0x34]
call fcn.1003f7e0
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x10065eff
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov dword [edi], eax
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10065f22
push dword [esp + 0x14]
mov ecx, esi
push edx
push dword [ebp + 0x14]
mov edx, 0x5e
call fcn.1003f7e0
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x10065f4f
mov ebx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [edi]
add edx, dword [ebp + 0x10]
cmp dword [eax], ebx
jg 0x10065f76
push edx
push 0
push dword [esp + 0x1c]
mov edx, 0x34
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
mov ebx, eax
jmp 0x10065fa8
lea eax, [ebx + 1]
mov dword [edi], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffe
push dword [esp + 0x68]
mov edx, ebx
mov ecx, esi
call fcn.10040430
mov eax, dword [esp + 0x7c]
add esp, 8
mov ecx, dword [esp + 0x58]
mov dword [eax + ecx], ebx
mov eax, dword [edi]
test eax, eax
jle 0x10065fdb
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, edx
jl 0x10065e40
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10066012
push 0
push dword [esp + 0x34]
mov ecx, esi
push edx
mov edx, 0x47
call fcn.1003f7e0
add esp, 0xc
jmp 0x10066044
mov ebx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10066063
push 0
push dword [esp + 0x4c]
mov edx, 9
mov ecx, esi
push 0
call fcn.1003f7e0
add esp, 0xc
jmp 0x10066095
mov edx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [edi]
cmp byte [eax + 0x57], 0
je 0x100660a7
mov dword [0x10143a28], edx
jmp 0x100660b5
mov eax, dword [esp + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 - 0xc], edx
xor ebx, ebx
mov eax, dword [esi]
mov edx, dword [edi]
cmp byte [eax + 0x57], 0
je 0x100660c8
mov eax, 0x10143a20
jmp 0x100660d8
mov eax, dword [esp + 0x58]
mov eax, dword [eax + ebx*4]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi]
add edx, ebx
cmp dword [eax], ecx
jg 0x10066100
push edx
push ebx
push dword [ebp + 0x14]
mov edx, 0x5e
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006612d
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
inc ebx
cmp ebx, dword [esp + 0x44]
jl 0x100660b7
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x48]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10066152
push edx
mov edx, esi
call fcn.1003fd90
add esp, 4
jmp 0x1006615a
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi]
mov dword [ecx + edx*4], eax
push dword [esp + 0x58]
push dword [esp + 0x38]
call fcn.1001ce80
add esp, 8
mov ecx, dword [esp + 0x1c]
mov edx, 1
push 0
push 0x10130ef8
push 2
push dword [esp + 0x20]
push dword [esp + 0x5c]
call fcn.1003fa20
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ebx, dword [edi]
cmp dword [ecx + 0x1f0], 0
mov eax, dword [eax]
je 0x1006638b
cmp eax, ebx
jg 0x100661c8
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x32
mov ecx, esi
call fcn.1003f7e0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ebx, eax
jmp 0x100661fa
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
mov dword [edi], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x32
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 eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov dword [esp + 0x64], ecx
cmp dword [eax], ecx
jg 0x10066222
push 0
push 0
push edx
mov edx, 0x10
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x10066254
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x10
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 eax, dword [esp + 0x10]
mov edx, dword [edi]
mov dword [esp + 0x58], edx
cmp dword [eax], edx
jg 0x10066281
push dword [ebp + 0x10]
mov edx, 0x18
mov ecx, esi
push 0
push dword [ebp + 0x14]
call fcn.1003f7e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x58], edx
jmp 0x100662b5
lea eax, [edx + 1]
mov dword [edi], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0x10]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x18
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x100662d2
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 1
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
mov edx, dword [edi]
je 0x100662e1
mov eax, 0x10143a20
jmp 0x100662ea
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x10]
mov dword [eax + 8], edx
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x10066312
mov edx, dword [esp + 0x38]
mov ecx, esi
push 0
push edx
push dword [ebp + 0x14]
mov edx, 0x27
call fcn.1003f7e0
add esp, 0xc
jmp 0x10066343
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [edi]
cmp byte [eax + 0x57], 0
je 0x10066354
mov eax, 0x10143a20
jmp 0x10066361
mov eax, dword [esp + 0x64]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esi]
mov edx, dword [edi]
cmp byte [eax + 0x57], 0
je 0x10066378
mov eax, 0x10143a20
mov dword [eax + 8], edx
jmp 0x100663df
mov eax, dword [esp + 0x58]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x100663df
cmp eax, ebx
jg 0x100663aa
mov edx, dword [esp + 0x38]
mov ecx, esi
push 0
push edx
push dword [ebp + 0x14]
mov edx, 0x27
call fcn.1003f7e0
add esp, 0xc
jmp 0x100663db
mov edx, dword [ebp + 0x14]
lea eax, [ebx + 1]
mov dword [edi], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
xor edx, edx
push 0
push 0x1012c8e0
push 1
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.1003fa20
mov edx, dword [edi]
add esp, 0x14
cmp dword [ebx], edx
jg 0x10066421
push dword [esp + 0x14]
mov edx, 0x61
mov ecx, esi
push 3
push dword [esp + 0x44]
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x10066457
mov ebx, dword [esp + 0x3c]
lea eax, [edx + 1]
mov dword [edi], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 8], 3
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 0x1013582c
mov ecx, esi
call fcn.10040430
mov ecx, dword [edi]
add esp, 8
cmp dword [ebx], ecx
jg 0x1006648b
push 0
push dword [esp + 0x28]
mov edx, 0x7f
mov ecx, esi
push dword [ebp + 0xc]
call fcn.1003f7e0
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x100664c0
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov dword [edi], eax
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp dword [ebx], ecx
jg 0x100664e0
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x18]
push edx
mov edx, 0x80
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006650e
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi]
test edx, edx
jle 0x10066526
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, 8
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [edi]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x10066535
mov eax, 0x10143a20
jmp 0x10066542
mov eax, dword [esp + 0x68]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x20], edx
test edx, edx
jne 0x10065993
test eax, eax
jne 0x100667d2
cmp byte [esp + 0xf], al
je 0x100667d2
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov edx, dword [esp + 0x6c]
cmp dword [eax], ecx
jg 0x1006659f
push 0
push dword [esp + 0x54]
mov ecx, esi
push edx
mov edx, 0x62
call fcn.1003f7e0
mov edx, dword [esp + 0x5c]
add esp, 0xc
jmp 0x100665cd
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [edi]
cmp dword [eax], ebx
jg 0x100665ef
push 0
push 0
push edx
mov edx, 0x11
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
mov ebx, eax
jmp 0x10066621
lea eax, [ebx + 1]
mov dword [edi], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x11
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 eax, dword [esp + 0x10]
mov ecx, dword [edi]
cmp dword [eax], ecx
jg 0x10066644
push 0
push dword [esp + 0x58]
mov edx, 0x4b
mov ecx, esi
push 0
call fcn.1003f7e0
add esp, 0xc
jmp 0x10066676
mov edx, dword [esp + 0x54]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
cmp dword [eax], edx
jg 0x1006669d
push dword [esp + 0x14]
mov edx, 0x61
mov ecx, esi
push 3
push dword [esp + 0x44]
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x100666d3
lea eax, [edx + 1]
mov dword [edi], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 8], 3
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 0x1013582c
mov ecx, esi
call fcn.10040430
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [edi]
cmp dword [eax], ecx
jg 0x1006670b
push 0
push dword [esp + 0x28]
mov edx, 0x7f
mov ecx, esi
push dword [ebp + 0xc]
call fcn.1003f7e0
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x10066740
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
cmp dword [eax], ecx
jg 0x10066764
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x18]
push edx
mov edx, 0x80
call fcn.1003f7e0
add esp, 0xc
jmp 0x10066796
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi]
test edx, edx
jle 0x100667ae
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, 8
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [edi]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x100667c5
mov eax, 0x10143a20
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret