Function at 0x10021bf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045b55
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
mov eax, 0x2aaaaaab
imul ecx, esi, 0x64
imul ecx
mov ecx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 0x60
lea edx, [ebp - 0x24]
mov dword [ebp - 0x68], eax
sete byte [ebp - 0x55]
call fcn.10013d00
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push eax
push str.AI_SYSTEM_DPI
push edi
call esi
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x24]
call fcn.10013d00
lea eax, [ebp - 0x24]
push eax
push str.AI_SYSTEM_DPI_SCALE
push edi
call esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x64]
push eax
mov edx, str.AI_BITMAP_DISPLAY_MODE
mov ecx, edi
call fcn.10016940
add esp, 4
test al, al
je 0x10021ccb
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
push 0xa
mov dword [ebp - 0x5c], 0xffffffff
call fcn.10015a30
add esp, 4
jmp 0x10021ccd
xor eax, eax
xor edi, edi
xor esi, esi
cmp eax, 3
ja case.default.0x10021cd6
jmp dword [eax*4 + 0x10021e64]
mov edi, 0x100000
jmp 0x10021cfd
xor edi, edi
mov esi, 0x100000
jmp case.default.0x10021cd6
movzx esi, byte [ebp - 0x55]
xor edi, edi
xor esi, 1
shl esi, 0x14
jmp case.default.0x10021cd6
xor edi, edi
xor esi, esi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74]
mov ecx, dword [ebp + 8]
mov edx, edi
push eax
push str.SELECT__FROM__Control__WHERE__Type___Bitmap
push esi
call fcn.100218d0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x74]
push eax
push str.SELECT__FROM__Control__WHERE__Type___Icon
push esi
mov edx, edi
call fcn.100218d0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x74]
push eax
push str.SELECT__FROM__Control__WHERE__Type___PushButton
push esi
mov edx, edi
call fcn.100218d0
mov eax, dword [ebp - 0x70]
add esp, 0x24
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
cmp edi, eax
je 0x10021e15
nop dword [eax + eax]
push edi
lea ecx, [ebp - 0x3c]
call fcn.10002020
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10021dfd
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
cmp word [eax], 0x5b
jne 0x10021dfd
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10002a50
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x10021de0
mov ecx, eax
call fcn.10003630
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
nop
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.10003630
push dword [ebp - 0x68]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x3c]
call fcn.10021480
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.10003630
add edi, 0x18
cmp edi, dword [ebp - 0x5c]
jne 0x10021d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.10002980
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x10021e36
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c803
mov esp, ebp
pop ebp
ret 4