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

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x20]
mov ebx, dword [esi]
mov dword [esp + 0x20], ebx
cmp byte [ebx + 0x57], 0
jne 0x10048bad
mov eax, dword [esp + 0x24]
push edi
add eax, 8
push eax
push 0
push esi
call fcn.100656d0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
test edi, edi
je 0x10048bac
mov cl, byte [edi + 0x2b]
cmp cl, 1
jne 0x100489a5
push str.virtual_tables_may_not_be_altered
push esi
call fcn.10055e80
add esp, 8
pop edi
push dword [esp + 0x24]
push ebx
call fcn.10074f30
add esp, 8
pop esi
pop ebx
add esp, 0x14
ret
cmp cl, 2
jne 0x100489cc
push str.Cannot_add_a_column_to_a_view
push esi
call fcn.10055e80
add esp, 8
pop edi
push dword [esp + 0x24]
push ebx
call fcn.10074f30
add esp, 8
pop esi
pop ebx
add esp, 0x14
ret
push edi
push esi
call fcn.10032ec0
add esp, 8
test eax, eax
jne 0x10048bac
mov eax, dword [esi + 0x78]
mov ecx, esi
test eax, eax
mov dword [esp + 0x10], 0xffff8000
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x10048a20
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x10048a1c
nop
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x10048a10
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
push ebp
push 0
push 0x40
push ebx
call fcn.10053d40
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x10048bab
push 0x40
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 0xf0], ebp
mov dword [ebp + 0x18], 1
movzx eax, word [edi + 0x22]
mov word [ebp + 0x22], ax
cwde
dec eax
cdq
and edx, 7
push 0
lea esi, [edx + eax]
sar esi, 3
inc esi
shl esi, 7
push esi
push ebx
call fcn.10053d40
mov edi, eax
add esp, 0x18
test edi, edi
je 0x10048a85
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, dword [esp + 0x1c]
mov dword [ebp + 4], edi
push dword [esi]
push str.sqlite_altertab__s
push ebx
call fcn.10065ac0
mov ecx, dword [ebp + 4]
add esp, 0xc
mov dword [ebp], eax
test ecx, ecx
je 0x10048bab
test eax, eax
je 0x10048bab
movsx eax, word [ebp + 0x22]
shl eax, 4
push eax
push dword [esi + 4]
push ecx
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
xor eax, eax
add esp, 0xc
mov dword [esp + 0x10], edx
cmp ax, word [ebp + 0x22]
jge 0x10048b7d
xor ecx, ecx
mov dword [esp + 0x18], ecx
nop
mov edi, dword [ebp + 4]
add edi, ecx
mov ebx, dword [edi]
test ebx, ebx
jne 0x10048af1
mov dword [edi], ebx
xor cl, cl
jmp 0x10048b56
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048af6
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.10053d40
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10048b29
push dword [esp + 0x20]
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor cl, cl
mov dword [edi], esi
test esi, esi
jne 0x10048b37
mov edx, dword [esp + 0x10]
jmp 0x10048b56
mov al, byte [esi]
test al, al
je 0x10048b52
nop dword [eax]
movzx eax, al
lea esi, [esi + 1]
add cl, byte [eax + 0x100b0f70]
mov al, byte [esi]
test al, al
jne 0x10048b40
mov edx, dword [esp + 0x10]
mov byte [edi + 0xa], cl
inc edx
mov ecx, dword [esp + 0x18]
movsx eax, word [ebp + 0x22]
add ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp edx, eax
jl 0x10048ae0
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
push 0
push dword [esi + 0x34]
push ebx
call fcn.1005a970
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ebp + 0x34], eax
add ecx, ecx
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x18], 1
pop ebp
pop edi
push dword [esp + 0x24]
push ebx
call fcn.10074f30
add esp, 8
pop esi
pop ebx
add esp, 0x14
ret