Function at 0x40a0b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x58]
lea edi, [esi + 0x74]
push edi
mov edi, dword [ebp + 8]
push edi
push eax
mov eax, dword [0x4661bc]
push ecx
mov ecx, dword [esi + 0xc]
push edx
push eax
mov dword [ebp - 4], 0
call fcn.00403300
mov ecx, dword [0x461fe4]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
push str.SELECT__FROM_FCFH_LOG_WHERE_ID___1
push edx
mov byte [ebp - 4], 1
call fcn.0042dd0d
mov eax, dword [ebp - 0x18]
add esp, 8
mov byte [ebp - 4], 2
mov edi, eax
push eax
mov word [ebp - 0x28], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x40a147
test edi, edi
je 0x40a147
push 0x8007000e
call fcn.0042d648
mov eax, dword [0x4661b0]
mov word [ebp - 0x38], 9
mov dword [ebp - 0x30], eax
mov bl, 3
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], bl
call dword [ecx + 4]
mov eax, dword [esi + 0x32c]
add esi, 0x32c
test eax, eax
mov byte [ebp - 4], 4
jne 0x40a17e
push 0x80004003
call fcn.0042d648
mov ecx, dword [ebp - 0x38]
push 1
push 2
push 2
sub esp, 0x10
mov edi, dword [esi]
mov eax, esp
sub esp, 0x10
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x28]
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
call dword [edx + 0xa0]
test eax, eax
jge 0x40a1d7
push 0x45f358
push edi
push eax
call fcn.0042d656
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], bl
call edi
test eax, eax
jge 0x40a1f0
push eax
call fcn.0042d648
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call edi
test eax, eax
jge 0x40a204
push eax
call fcn.0042d648
mov eax, dword [esi]
mov dword [ebp - 4], 1
test eax, eax
jne 0x40a21b
push 0x80004003
call fcn.0042d648
mov eax, dword [0x468e00]
mov edx, dword [0x468e04]
mov ebx, dword [0x468e08]
sub esp, 0x10
mov ecx, eax
mov dword [ebp - 0x48], eax
mov eax, esp
mov edi, edx
mov dword [ebp - 0x30], ebx
mov ebx, dword [0x468e0c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
sub esp, 0x10
mov esi, dword [esi]
mov dword [eax + 4], edi
mov dword [ebp - 0x44], edx
mov edx, dword [esi]
mov dword [eax + 8], ecx
mov ecx, esp
push esi
mov dword [eax + 0xc], ebx
mov eax, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, edi
mov dword [ecx + 4], eax
mov eax, dword [0x468e08]
mov dword [ecx + 8], eax
mov eax, ebx
mov dword [ecx + 0xc], eax
call dword [edx + 0x78]
test eax, eax
jge 0x40a2b4
push 0x45f358
push esi
push eax
call fcn.0042d656
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00431222
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00431222
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.ClientInfo
mov byte [ebp - 4], 6
mov word [ebp - 0x28], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x40a2e2
mov ecx, str.ClientInfo
test ecx, ecx
je 0x40a2e2
push 0x8007000e
call fcn.0042d648
mov edi, dword [ebp - 0x14]
mov bl, 7
mov byte [ebp - 4], bl
mov word [ebp - 0x38], 8
mov esi, dword [edi + 0x58]
push esi
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x40a30e
test esi, esi
je 0x40a30e
push 0x8007000e
call fcn.0042d648
mov eax, dword [edi + 0x32c]
lea esi, [edi + 0x32c]
test eax, eax
mov byte [ebp - 4], 8
jne 0x40a32c
push 0x80004003
call fcn.0042d648
mov ecx, dword [ebp - 0x38]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov esi, dword [esi]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov edx, dword [esi]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x28]
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
call dword [edx + 0x100]
test eax, eax
jge 0x40a37f
push 0x45f358
push esi
push eax
call fcn.0042d656
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], bl
call edi
test eax, eax
jge 0x40a398
push eax
call fcn.0042d648
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
call edi
test eax, eax
jge 0x40a3ac
push eax
call fcn.0042d648
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x64]
test eax, eax
jl 0x40a493
mov word [ebp - 0x28], 3
mov dword [ebp - 0x20], eax
mov bl, 9
push str.BldgID
mov byte [ebp - 4], bl
mov word [ebp - 0x38], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x40a3f2
mov ecx, str.BldgID
test ecx, ecx
je 0x40a3f2
push 0x8007000e
call fcn.0042d648
mov ecx, dword [esi + 0x32c]
lea eax, [esi + 0x32c]
test ecx, ecx
mov byte [ebp - 4], 0xa
jne 0x40a410
push 0x80004003
call fcn.0042d648
mov edx, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
lea eax, [edx + 0x32c]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x38]
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], edx
call dword [eax + 0x100]
test eax, eax
jge 0x40a46c
push 0x45f358
push esi
push eax
call fcn.0042d656
lea eax, [ebp - 0x38]
mov byte [ebp - 4], bl
push eax
call edi
test eax, eax
jge 0x40a47f
push eax
call fcn.0042d648
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
call edi
test eax, eax
jge 0x40a493
push eax
call fcn.0042d648
push str.ExecState
mov word [ebp - 0x28], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x40a4bd
mov edx, str.ExecState
test edx, edx
je 0x40a4bd
push 0x8007000e
call fcn.0042d648
mov eax, dword [ebp - 0x14]
mov bl, 0xb
mov byte [ebp - 4], bl
mov word [ebp - 0x38], 8
mov esi, dword [eax + 0x5c]
push esi
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x40a4e9
test esi, esi
je 0x40a4e9
push 0x8007000e
call fcn.0042d648
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
lea eax, [ecx + 0x32c]
mov ecx, dword [ecx + 0x32c]
test ecx, ecx
jne 0x40a50a
push 0x80004003
call fcn.0042d648
mov edx, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
lea eax, [edx + 0x32c]
mov edx, dword [ebp - 0x38]
mov dword [ecx], edx
mov edx, dword [ebp - 0x34]
mov esi, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x28]
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
call dword [eax + 0x100]
test eax, eax
jge 0x40a566
push 0x45f358
push esi
push eax
call fcn.0042d656
lea eax, [ebp - 0x38]
mov byte [ebp - 4], bl
push eax
call edi
test eax, eax
jge 0x40a579
push eax
call fcn.0042d648
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
call edi
test eax, eax
jge 0x40a58d
push eax
call fcn.0042d648
push str.CompState
mov word [ebp - 0x48], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x40a5b7
mov edx, str.CompState
test edx, edx
je 0x40a5b7
push 0x8007000e
call fcn.0042d648
lea eax, [ebp - 0x1c]
push 0x28
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call fcn.0042d948
mov esi, dword [eax]
mov bl, 0xe
push esi
mov byte [ebp - 4], bl
mov word [ebp - 0x38], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x40a5f1
test esi, esi
je 0x40a5f1
push 0x8007000e
call fcn.0042d648
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
lea eax, [ecx + 0x32c]
mov ecx, dword [ecx + 0x32c]
test ecx, ecx
jne 0x40a612
push 0x80004003
call fcn.0042d648
mov edx, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
lea eax, [edx + 0x32c]
mov edx, dword [ebp - 0x38]
mov dword [ecx], edx
mov edx, dword [ebp - 0x34]
mov esi, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x48]
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [ebp - 0x44]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x40]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edx
call dword [eax + 0x100]
test eax, eax
jge 0x40a66e
push 0x45f358
push esi
push eax
call fcn.0042d656
lea eax, [ebp - 0x38]
mov byte [ebp - 4], bl
push eax
call edi
test eax, eax
jge 0x40a681
push eax
call fcn.0042d648
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.00431222
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
push ecx
call edi
test eax, eax
jge 0x40a6a1
push eax
call fcn.0042d648
mov esi, dword [ebp - 0x14]
mov word [ebp - 0x38], 3
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x30], eax
mov bl, 0x10
push str.OptID
mov byte [ebp - 4], bl
mov word [ebp - 0x48], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x40a6df
mov edx, str.OptID
test edx, edx
je 0x40a6df
push 0x8007000e
call fcn.0042d648
mov eax, dword [esi + 0x32c]
add esi, 0x32c
test eax, eax
mov byte [ebp - 4], 0x11
jne 0x40a6fd
push 0x80004003
call fcn.0042d648
mov ecx, dword [esi]
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x48]
push eax
push edx
call fcn.0040b7c0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], bl
push eax
call edi
test eax, eax
jge 0x40a71f
push eax
call fcn.0042d648
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
push ecx
call edi
test eax, eax
jge 0x40a733
push eax
call fcn.0042d648
push str.OptDate
mov word [ebp - 0x48], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x40a75d
mov edx, str.OptDate
test edx, edx
je 0x40a75d
push 0x8007000e
call fcn.0042d648
lea eax, [ebp - 0x34]
mov bl, 0x12
push eax
mov byte [ebp - 4], bl
call fcn.0041b459
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, edx
push 5
push eax
mov dword [ebp - 0x20], ecx
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], edx
call fcn.0040b300
mov esi, eax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x13
lea ecx, [edx + 0x32c]
call fcn.0040b0d0
lea ecx, [ebp - 0x48]
push esi
push ecx
mov ecx, eax
call fcn.0040b7c0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], bl
push edx
call edi
test eax, eax
jge 0x40a7b7
push eax
call fcn.0042d648
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
call edi
test eax, eax
jge 0x40a7cb
push eax
call fcn.0042d648
mov ecx, dword [ebp - 0x14]
add ecx, 0x32c
call fcn.0040b0d0
push 0x468e00
push 0x468e00
mov ecx, eax
call fcn.0040b6d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
lea ecx, [eax + 0x32c]
call fcn.0040b0d0
mov ecx, eax
call fcn.0040b670
jmp 0x40a286