Function at 0x1000314f
Capabilities:
Contain obfuscated stackstrings
Reference sql statements

Disassembly:
mov eax, 0x100186b0
call fcn.100076b4
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0x10026a70
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], esi
call fcn.1000722d
pop ecx
test eax, eax
pop ecx
je 0x1000347d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x38]
push str.SELECT_siteid_siteurl_fromcatchsitename_loginString_mainsiteid_FROM_SiteAll_WHERE_siteurl_like__
push eax
call fcn.10011864
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.__ORDER_BY_siteid
push eax
push ecx
call fcn.100117f0
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
mov byte [ebp - 4], 3
call fcn.100112ee
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10002c00
mov ebx, eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
call fcn.1001155b
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x1000347d
mov dword [ebp - 0x1c], esi
jle 0x1000346f
mov esi, 0x10020114
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax + ecx*4]
lea ecx, [ebp - 0x34]
push edi
call fcn.100112ee
lea eax, [edi + 4]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.100112ee
lea eax, [edi + 8]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 5
call fcn.100112ee
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.100112ee
add edi, 0x10
lea ecx, [ebp - 0x2c]
push edi
mov byte [ebp - 4], 7
call fcn.100112ee
push 0x10026a70
mov byte [ebp - 4], 8
push dword [ebp - 0x18]
call fcn.1000722d
pop ecx
test eax, eax
pop ecx
je 0x10003424
mov edi, dword [ebp + 0xc]
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.100112ee
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
call fcn.10002f2f
mov eax, dword [eax]
push edi
push eax
call fcn.10007098
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x3c]
inc bl
call fcn.1001155b
test bl, bl
je 0x10003421
mov edi, 0x10020118
push edi
push dword [ebp - 0x2c]
call fcn.10007098
pop ecx
test eax, eax
pop ecx
jne 0x10003421
cmp dword [ebp - 0x20], eax
jne 0x100032c8
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jle 0x100032e1
lea ecx, [ebp - 0x10]
call fcn.10010a43
lea ecx, [ebp - 0x10]
call fcn.100109f7
push 0x10020120
push dword [ebp - 0x10]
call fcn.10007098
pop ecx
test eax, eax
pop ecx
mov eax, 0x1002011c
je 0x100032fb
mov eax, edi
push eax
lea ecx, [ebp - 0x24]
call fcn.100115c9
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
push esi
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.100112ee
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
push eax
call fcn.10003b59
push eax
push esi
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.100112ee
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x58]
push eax
call fcn.10003b59
mov edi, eax
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0xb
call fcn.100117f0
push edi
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xc
push eax
call fcn.1001178a
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 0xd
call fcn.100117f0
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xe
call fcn.1001178a
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xf
call fcn.100117f0
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x10
call fcn.1001178a
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 0x11
mov edx, dword [ecx + 8]
push edx
call fcn.10010cf6
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.1001155b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.1001155b
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.1001155b
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
call fcn.1001155b
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xc
call fcn.1001155b
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call fcn.1001155b
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.1001155b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.1001155b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.1001155b
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.1001155b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.1001155b
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.1001155b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.1001155b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1001155b
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 8]
jl 0x100031f6
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.10010deb
mov esi, dword [ebp - 0x20]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1001155b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1001155b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc