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

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebx
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x28], ebx
cmp dword [esp + 0x54], ebx
je 0x1004b22d
mov ebp, dword [ecx + 0x14]
xor esi, esi
cmp ebp, ebx
jle 0x1004b22d
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x3c], ecx
mov edi, ecx
lea esp, [esp]
mov eax, dword [esp + 0x54]
mov ecx, dword [edi]
push eax
push ecx
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x1004b21e
inc esi
add edi, 0x10
cmp esi, ebp
jl 0x1004b200
jmp 0x1004b22d
mov edx, dword [esp + 0x3c]
shl esi, 4
mov eax, dword [esi + edx + 0xc]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x60], ebx
je 0x1004b7b0
jmp 0x1004b240
cmp dword [esp + 0x10], 0
jne 0x1004b848
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1004b501
xor ecx, ecx
cmp cx, word [eax]
lea edx, [eax + 8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], edx
jge 0x1004b4e2
jmp 0x1004b280
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x2c], edx
test eax, eax
je 0x1004b313
mov ecx, 0x200
test word [eax + 6], cx
je 0x1004b313
mov edi, dword [eax]
xor esi, esi
xor ebp, ebp
cmp dword [edi], esi
jle 0x1004b308
mov dword [esp + 0x24], esi
nop
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 8]
mov ebx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [edx + ecx + 8]
call fcn.1004b0c0
add esp, 8
test eax, eax
je 0x1004b2f6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
mov ebp, 1
add dword [esp + 0x10], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], eax
mov word [ecx + 0x1c], si
add dword [esp + 0x24], 0x18
inc esi
cmp esi, dword [edi]
jl 0x1004b2b0
test ebp, ebp
jne 0x1004b4c5
cmp dword [esp + 0x58], 0
je 0x1004b4c5
cmp dword [esp + 0x54], 0
mov edi, dword [esp + 0x2c]
je 0x1004b32b
mov edx, dword [esp + 0x20]
cmp dword [edi + 0x40], edx
jne 0x1004b4c5
mov edx, dword [esp + 0x58]
test edx, edx
je 0x1004b389
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x1004b340
mov esi, dword [edi]
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x1004b36d
jmp 0x1004b350
movzx esi, byte [edx]
movzx eax, al
mov al, byte [eax + 0x103691e8]
cmp al, byte [esi + 0x103691e8]
jne 0x1004b36d
mov al, byte [ecx + 1]
inc ecx
inc edx
test al, al
jne 0x1004b350
movzx edx, byte [edx]
movzx ecx, byte [ecx]
movzx eax, byte [edx + 0x103691e8]
movzx edx, byte [ecx + 0x103691e8]
sub edx, eax
jne 0x1004b4c5
mov eax, dword [esp + 0x18]
mov ecx, eax
inc eax
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x1004b3a0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 4]
movsx edi, word [edi + 0x26]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], edi
test edi, edi
jle 0x1004b4c5
lea ecx, [ecx]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
mov al, byte [ecx]
mov edx, dword [esp + 0x5c]
test al, al
je 0x1004b3ed
movzx ebx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x103691e8]
cmp al, byte [ebx + 0x103691e8]
jne 0x1004b3ed
mov al, byte [ecx + 1]
inc ecx
inc edx
test al, al
jne 0x1004b3d0
movzx edx, byte [edx]
movzx ecx, byte [ecx]
movzx eax, byte [edx + 0x103691e8]
movzx edx, byte [ecx + 0x103691e8]
sub edx, eax
jne 0x1004b4a6
cmp dword [esp + 0x10], 1
jne 0x1004b481
mov eax, dword [esp + 0x14]
test byte [eax + 0x20], 4
jne 0x1004b4a6
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1004b481
mov ebp, dword [eax + 4]
xor edi, edi
test ebp, ebp
jle 0x1004b481
mov esi, dword [eax]
mov ecx, dword [esi]
mov al, byte [ecx]
mov edx, dword [esp + 0x5c]
test al, al
je 0x1004b45d
lea esp, [esp]
movzx ebx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x103691e8]
cmp al, byte [ebx + 0x103691e8]
jne 0x1004b45d
mov al, byte [ecx + 1]
inc ecx
inc edx
test al, al
jne 0x1004b440
movzx edx, byte [edx]
movzx ecx, byte [ecx]
movzx eax, byte [edx + 0x103691e8]
movzx edx, byte [ecx + 0x103691e8]
sub edx, eax
je 0x1004b49e
inc edi
add esi, 8
cmp edi, ebp
jl 0x1004b430
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
movsx edx, word [ecx + 0x24]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
cmp esi, edx
jne 0x1004b4ba
or eax, 0xffffffff
jmp 0x1004b4bd
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x28]
add dword [esp + 0x24], 0x18
inc esi
cmp esi, edi
mov dword [esp + 0x28], esi
jl 0x1004b3c0
jmp 0x1004b4c5
movsx eax, si
mov ecx, dword [esp + 0x64]
mov word [ecx + 0x1c], ax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
movsx ecx, word [edx]
add dword [esp + 0x14], 0x48
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x1004b280
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004b501
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [eax + 0x40]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x54], 0
jne 0x1004b6d1
mov edi, dword [esp + 0x58]
test edi, edi
je 0x1004b6d1
cmp dword [esp + 0x10], 0
jne 0x1004b79a
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x1b4], 0
je 0x1004b6dc
movzx esi, byte [eax + 0x1c8]
cmp esi, 0x6a
je 0x1004b569
push edi
push 0x10379360
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x1004b569
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
mov dword [ecx + 0x18], 1
mov ebx, dword [edx + 0x1b4]
jmp 0x1004b59d
cmp esi, 0x69
je 0x1004b6dc
push edi
push 0x10379364
call sym.NirvanaBiz.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x1004b6dc
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x18], 0
mov ebx, dword [ecx + 0x1b4]
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x1004b6dc
movsx edi, word [ebx + 0x26]
mov edx, dword [ebx + 0x40]
inc dword [esp + 0x18]
xor ebp, ebp
mov dword [esp + 0x20], edx
test edi, edi
jle 0x1004b61e
mov esi, dword [ebx + 4]
mov ecx, dword [esi]
mov al, byte [ecx]
mov edx, dword [esp + 0x5c]
test al, al
je 0x1004b5f1
lea ecx, [ecx]
movzx ebx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x103691e8]
cmp al, byte [ebx + 0x103691e8]
jne 0x1004b5ed
mov al, byte [ecx + 1]
inc ecx
inc edx
test al, al
jne 0x1004b5d0
mov ebx, dword [esp + 0x2c]
movzx edx, byte [edx]
movzx ecx, byte [ecx]
movzx eax, byte [edx + 0x103691e8]
movzx edx, byte [ecx + 0x103691e8]
sub edx, eax
je 0x1004b613
inc ebp
add esi, 0x18
cmp ebp, edi
jl 0x1004b5c1
jmp 0x1004b61e
movsx eax, word [ebx + 0x24]
cmp ebp, eax
jne 0x1004b61e
or ebp, 0xffffffff
cmp ebp, edi
jl 0x1004b63a
mov esi, dword [esp + 0x5c]
call fcn.1004e2c0
test eax, eax
je 0x1004b632
or ebp, 0xffffffff
cmp ebp, edi
jge 0x1004b6dc
mov edx, dword [esp + 0x64]
mov esi, 1
mov dword [esp + 0x10], esi
test ebp, ebp
jge 0x1004b65f
mov byte [edx + 1], 0x64
mov word [edx + 0x1c], bp
mov dword [edx + 0x28], ebx
mov dword [esp + 0x40], esi
jmp 0x1004b79a
cmp dword [edx + 0x18], 0
jne 0x1004b6a7
cmp ebp, 0x20
jl 0x1004b687
mov ecx, dword [esp + 0x50]
or eax, 0xffffffff
or dword [ecx + 0x1c0], eax
mov word [edx + 0x1c], bp
mov dword [edx + 0x28], ebx
mov dword [esp + 0x40], esi
jmp 0x1004b79a
mov ecx, ebp
mov eax, esi
shl eax, cl
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], esi
or dword [ecx + 0x1c0], eax
mov word [edx + 0x1c], bp
mov dword [edx + 0x28], ebx
jmp 0x1004b79a
cmp ebp, 0x20
jl 0x1004b6b1
or eax, 0xffffffff
jmp 0x1004b6b7
mov eax, esi
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x50]
or dword [ecx + 0x1c4], eax
mov word [edx + 0x1c], bp
mov dword [edx + 0x28], ebx
mov dword [esp + 0x40], esi
jmp 0x1004b79a
cmp dword [esp + 0x10], 0
jne 0x1004b79a
cmp dword [esp + 0x18], 1
jne 0x1004b70c
mov esi, dword [esp + 0x5c]
call fcn.1004e2c0
test eax, eax
je 0x1004b70c
mov eax, dword [esp + 0x64]
or ecx, 0xffffffff
mov dword [esp + 0x10], 1
mov word [eax + 0x1c], cx
mov byte [eax + 1], 0x64
jmp 0x1004b79a
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1004b78b
cmp dword [esp + 0x58], 0
jne 0x1004b78b
mov ebx, dword [ecx]
xor eax, eax
mov dword [esp + 0x44], ebx
test ebx, ebx
jle 0x1004b78b
mov edi, dword [ecx + 8]
add edi, 4
mov ebp, dword [edi]
test ebp, ebp
je 0x1004b77c
mov cl, byte [ebp]
mov esi, dword [esp + 0x5c]
mov edx, ebp
test cl, cl
je 0x1004b764
movzx ebx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x103691e8]
cmp cl, byte [ebx + 0x103691e8]
jne 0x1004b760
mov cl, byte [edx + 1]
inc edx
inc esi
test cl, cl
jne 0x1004b743
mov ebx, dword [esp + 0x44]
movzx edx, byte [edx]
movzx ecx, byte [edx + 0x103691e8]
movzx edx, byte [esi]
movzx edx, byte [edx + 0x103691e8]
sub ecx, edx
je 0x1004b7e0
inc eax
add edi, 0x18
cmp eax, ebx
jl 0x1004b730
cmp dword [esp + 0x10], 0
jne 0x1004b79a
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x10]
inc dword [esp + 0x30]
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x60], 0
jne 0x1004b240
cmp dword [esp + 0x10], 0
jne 0x1004b848
cmp dword [esp + 0x58], 0
jne 0x1004b859
mov eax, dword [esp + 0x64]
test byte [eax + 2], 0x40
je 0x1004b859
mov byte [eax], 0x5e
mov dword [eax + 0x28], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ebx, dword [esp + 0x60]
test byte [ebx + 0x1c], 1
jne 0x1004b81b
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx + 8]
lea edx, [eax + eax*2]
mov edx, dword [ecx + edx*8]
test byte [edx + 2], 2
je 0x1004b81b
mov edi, dword [esp + 0x50]
push ebp
push str.misuse_of_aliased_aggregate__s
call fcn.10025f30
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [ebx + 8]
push 0x10138e32
push edx
push ecx
mov ecx, dword [esp + 0x60]
push ecx
call fcn.1004af30
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x78]
add esp, 0x14
jmp 0x1004b96c
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x1004b8ee
test ebx, ebx
jne 0x1004b864
mov ebx, dword [esp + 0x10]
mov eax, str.no_such_column
jmp 0x1004b869
mov eax, str.ambiguous_column_name
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
test ecx, ecx
je 0x1004b89d
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push edx
push ecx
push eax
push str._s:__s._s._s
call fcn.10025f30
mov esi, dword [esp + 0x48]
mov edx, edi
add esp, 0x14
mov byte [edx + 0x11], 1
inc dword [esi + 0x18]
jmp 0x1004b8f2
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x1004b8ca
mov edx, dword [esp + 0x5c]
push edx
push ecx
push eax
push str._s:__s._s
call fcn.10025f30
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x44]
add esp, 0x10
mov byte [edx + 0x11], 1
inc dword [esi + 0x18]
jmp 0x1004b8f2
mov ecx, dword [esp + 0x5c]
push ecx
push eax
push str._s:__s
call fcn.10025f30
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x40]
add esp, 0xc
mov byte [edx + 0x11], 1
inc dword [esi + 0x18]
jmp 0x1004b8f2
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x64]
movzx eax, word [edi + 0x1c]
test ax, ax
jl 0x1004b926
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1004b926
movsx ecx, ax
cmp ecx, 0x40
jl 0x1004b914
mov ecx, 0x3f
mov eax, 1
xor edx, edx
call fcn.1012a990
or dword [ebp + 0x38], eax
or dword [ebp + 0x3c], edx
mov eax, dword [edi + 8]
mov ebp, dword [esp + 0x48]
push eax
push ebp
call fcn.1004d3e0
mov ecx, dword [edi + 0xc]
push ecx
push ebp
mov dword [edi + 8], 0
call fcn.1004d3e0
mov edx, dword [esp + 0x50]
add esp, 0x10
neg edx
sbb dl, dl
and dl, 0xa4
add dl, 0x98
mov dword [edi + 0xc], 0
mov byte [edi], dl
cmp ebx, 1
jne 0x1004b80e
mov ebx, dword [esp + 0x60]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x24]
push edi
push ecx
mov ebp, 1
call fcn.10054f10
add dword [esi + 0x14], ebp
add esp, 0xc
cmp esi, ebx
je 0x1004b99a
mov edi, edi
mov esi, dword [esi + 0x10]
add dword [esi + 0x14], ebp
cmp esi, ebx
jne 0x1004b990
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x3c
ret