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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
xorps xmm0, xmm0
push ebp
mov ebp, ecx
mov dword [esp + 8], 0
push esi
push edi
mov esi, edx
movlpd qword [esp + 0x20], xmm0
xor edi, edi
movlpd qword [esp + 0x28], xmm0
cmp byte [ebp + 0x55], 0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
je 0x101041db
push edi
push edi
push edi
push str.BEGIN
push ebp
call fcn.1008a320
add esp, 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], 1
jmp 0x101041df
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x10104220
push ebx
push esi
lea eax, [esp + 0x1c]
push str.SELECT__FROM__Q._q_rowid
push eax
call fcn.10103900
add esp, 0x10
test eax, eax
je 0x10104210
movzx edi, word [eax + 0x90]
push eax
sub edi, 2
call fcn.10048de0
add esp, 4
jmp 0x10104220
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp eax, 7
cmovne eax, ecx
mov dword [esp + 0x3c], eax
push ebx
push esi
lea eax, [esp + 0x1c]
push str.SELECT__FROM__Q._Q
push eax
call fcn.10103900
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10104326
movzx ecx, word [esi + 0x90]
sub ecx, edi
dec ecx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
cmp ecx, 2
jge 0x1010426f
lea eax, [esp + 0x14]
push str.Schema_corrupt_or_not_an_rtree
push eax
call fcn.101039d0
add esp, 8
jmp 0x1010430d
push esi
call fcn.10049ed0
add esp, 4
cmp eax, 0x64
jne 0x1010430d
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10104294
push eax
call dword [0x10165b48]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x101042ae
mov ecx, 1
cmp cx, word [esi + 0x90]
jae 0x101042ae
add eax, 0x28
jmp 0x101042c6
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.100223b0
mov eax, 0x10151a48
movzx eax, word [eax + 0x10]
mov ecx, dword [esi]
and eax, 0x3f
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
mov bl, byte [eax + 0x101557e0]
jne 0x101042e6
test edx, edx
jne 0x101042e6
xor eax, eax
jmp 0x101042eb
call fcn.1001f000
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10104301
push eax
call dword [0x10165b50]
add esp, 4
xor eax, eax
cmp bl, 1
sete al
mov dword [esp + 0x20], eax
push esi
call fcn.10048de0
mov ecx, dword [esp + 0x40]
add esp, 4
cmp eax, 0xb
cmovne ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x1010432a
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x24], 1
jl 0x10104374
test ecx, ecx
jne 0x10104347
push ecx
push 1
push ecx
xor edx, edx
lea ecx, [esp + 0x20]
call fcn.10103d80
add esp, 0xc
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
cdq
push edx
push eax
mov edx, str._rowid
call fcn.101040f0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
cdq
push edx
push eax
mov edx, str._parent
call fcn.101040f0
add esp, 0x10
push dword [esp + 0x28]
call fcn.10048de0
add esp, 4
push dword [esp + 0x2c]
call fcn.10048de0
add esp, 4
push dword [esp + 0x30]
call fcn.10048de0
add esp, 4
cmp dword [esp + 0x10], 0
je 0x101043d0
push 0
push 0
push 0
push 0x1015ff20
push ebp
call fcn.1008a320
mov esi, dword [esp + 0x50]
add esp, 0x14
mov edx, dword [esp + 0x54]
test esi, esi
mov ecx, dword [esp + 0x40]
cmove esi, eax
mov eax, esi
mov dword [edx], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
pop ebx
add esp, 0x3c
ret