Function at 0x10122ba0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147195
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x10189710]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, edx
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x43c], ebx
cmp esi, ebx
je 0x1012311d
cmp byte [esi], bl
je 0x1012311d
cmp eax, ebx
je 0x1012311d
cmp ecx, ebx
je 0x1012311d
push 0x207
mov byte [eax], bl
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call fcn.1012e060
add esp, 0xc
push 0x207
lea ecx, [ebp - 0x21f]
push ebx
push ecx
mov byte [ebp - 0x220], bl
call fcn.1012e060
add esp, 0xc
mov dword [ebp - 0x444], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x448], ebx
push esi
push str.DomainList
lea edx, [ebp - 0x428]
push str.SELECT__FROM__s_WHERE_DomainName_IN__s_
push edx
mov byte [ebp - 4], 1
call fcn.10127dc0
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
lea ebx, [ebp - 0x44c]
call fcn.1000ad00
xor ebx, ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x434], ebx
lea ecx, [ebp - 0x42c]
push ecx
mov byte [ebp - 4], 5
call fcn.10124ed0
cmp eax, ebx
jl 0x10123041
mov esi, dword [ebp - 0x42c]
mov ecx, dword [edi + 0x208]
cmp esi, ebx
jne 0x10122cca
push 0x80004003
call fcn.101451d0
call fcn.10121820
mov eax, dword [ebp - 0x42c]
cmp eax, ebx
jne 0x10122ce3
push 0x80004003
call fcn.101451d0
mov edx, dword [eax]
push 1
mov esi, eax
push eax
mov eax, dword [edx + 0x50]
call eax
cmp eax, ebx
jge 0x10122cff
push 0x1017efd0
push esi
push eax
call fcn.101451f0
mov eax, dword [ebp - 0x44c]
push ecx
mov ecx, esp
mov dword [ebp - 0x438], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x10122d1e
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x42c]
cmp ecx, ebx
jne 0x10122d36
push 0x80004003
call fcn.101451d0
mov byte [ebp - 4], 5
call fcn.10121840
mov esi, dword [ebp - 0x42c]
cmp esi, ebx
jne 0x10122d53
push 0x80004003
call fcn.101451d0
lea edi, [ebp - 0x430]
call fcn.101218f0
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
je 0x10122d7a
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov dword [ebp - 0x434], eax
call edx
mov ebx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x430]
cmp eax, edi
je 0x10122d8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp ebx, edi
sete al
test al, al
sete al
test al, al
je 0x10123005
cmp ebx, edi
jne 0x10122dac
push 0x80004003
call fcn.101451d0
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea ecx, [ebp - 0x430]
push ecx
push ebx
mov dword [ebp - 0x430], edi
call edx
cmp eax, edi
jge 0x10122dd1
push 0x1017f010
push ebx
push eax
call fcn.101451f0
cmp word [ebp - 0x430], di
je 0x10122de5
mov dword [ebp - 0x43c], edi
jmp 0x10122fc7
mov eax, 8
push str.CreationDate
mov word [ebp - 0x460], ax
call fcn.10144f30
mov dword [ebp - 0x458], eax
lea edi, [ebp - 0x438]
mov esi, ebx
mov byte [ebp - 4], 7
call fcn.10121aa0
mov byte [ebp - 4], 8
mov esi, dword [eax]
test esi, esi
jne 0x10122e26
push 0x80004003
call fcn.101451d0
lea ecx, [ebp - 0x460]
lea edi, [ebp - 0x430]
call fcn.101217c0
mov byte [ebp - 4], 9
mov esi, dword [eax]
test esi, esi
jne 0x10122e4b
push 0x80004003
call fcn.101451d0
lea edi, [ebp - 0x478]
call fcn.10121770
mov byte [ebp - 4], 0xa
mov ebx, dword [eax + 8]
lea ecx, [ebp - 0x444]
call fcn.10121640
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, edi
push ecx
call esi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x10122e89
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x10122e9f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x460]
push eax
mov byte [ebp - 4], 5
call esi
lea eax, [ebp - 0x444]
call fcn.10121700
mov ecx, dword [ebp - 0x440]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, 8
push str.DomainRecord
mov word [ebp - 0x460], dx
call fcn.10144f30
mov dword [ebp - 0x458], eax
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x434]
lea edi, [ebp - 0x438]
call fcn.10121aa0
mov byte [ebp - 4], 0xc
mov esi, dword [eax]
test esi, esi
jne 0x10122f0a
push 0x80004003
call fcn.101451d0
lea ecx, [ebp - 0x460]
lea edi, [ebp - 0x440]
call fcn.101217c0
mov byte [ebp - 4], 0xd
mov esi, dword [eax]
test esi, esi
jne 0x10122f2f
push 0x80004003
call fcn.101451d0
lea edi, [ebp - 0x478]
call fcn.10121770
mov byte [ebp - 4], 0xe
mov ebx, dword [eax + 8]
lea ecx, [ebp - 0x448]
call fcn.10121640
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, edi
push eax
call esi
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x10122f6d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x10122f83
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x460]
push eax
mov byte [ebp - 4], 5
call esi
lea eax, [ebp - 0x448]
call fcn.10121700
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x464]
push eax
push esi
push ecx
call fcn.10130710
mov ebx, dword [ebp - 0x434]
add esp, 0xc
mov dword [ebp - 0x43c], 1
xor edi, edi
mov esi, ebx
call fcn.10121ae0
test al, 1
je 0x10123005
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
push ebx
call eax
cmp eax, edi
jge 0x10122fed
push 0x1017f010
push ebx
push eax
call fcn.101451f0
mov dword [ebp - 0x434], edi
cmp ebx, edi
je 0x10122fff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov ebx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x42c]
cmp eax, edi
jne 0x10123019
push 0x80004003
call fcn.101451d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x42c]
cmp eax, edi
je 0x10123047
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x42c], eax
test ecx, ecx
je 0x10123047
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 4
test ebx, ebx
je 0x1012305d
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 3
test eax, eax
je 0x1012306d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea edi, [ebp - 0x44c]
call fcn.1000ae30
lea edi, [ebp - 0x448]
call fcn.1000ae30
lea edi, [ebp - 0x444]
call fcn.1000ae30
mov eax, dword [ebp - 0x43c]
jmp 0x1012311f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 8