Function at 0x10039220
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046371
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10059794]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc90.dll_Ordinal_316]
cmp dword [ebp + 8], 0
mov bl, 2
mov byte [ebp - 4], bl
je 0x100392a1
mov esi, dword [edi + 0x178]
test esi, esi
jne 0x10039286
push 0x80004003
call fcn.1003e8a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x80]
push esi
call edx
test eax, eax
jge 0x100392a1
push 0x10047c78
push esi
push eax
call fcn.1003e8c0
mov eax, dword [edi + 0x170]
mov eax, dword [eax + 8]
add eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x100392bd
push 0x80004003
call fcn.1003e8a0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.10038370
push eax
lea edx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x100392e1
push eax
call fcn.1003e8a0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [edi + 0x178]
test esi, esi
jne 0x10039302
push 0x80004003
call fcn.1003e8a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0xf0]
push 3
push esi
call edx
test eax, eax
jge 0x1003931f
push 0x10047c78
push esi
push eax
call fcn.1003e8c0
mov eax, dword [edi + 0x170]
mov eax, dword [eax + 4]
add eax, 4
mov eax, dword [eax]
test eax, eax
je 0x10039335
mov eax, dword [eax]
jmp 0x10039337
xor eax, eax
push eax
lea ecx, [ebp - 0x14]
push str.SELECT__FROM__S_Cache_WHERE_TransactionNum___1
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp + 8]
call fcn.10002880
mov edx, 8
mov word [ebp - 0x2c], dx
mov eax, dword [eax]
mov byte [ebp - 4], 4
test eax, eax
je 0x10039375
mov esi, dword [eax]
test esi, esi
jne 0x10039394
mov dword [ebp - 0x24], 0
mov ecx, dword [edi + 0x178]
mov byte [ebp - 4], 5
test ecx, ecx
jne 0x100393b4
push 0x80004003
call fcn.1003e8a0
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1003937c
push 0x8007000e
call fcn.1003e8a0
push 1
push 3
push 3
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.1000b610
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], bl
test esi, esi
je 0x10039413
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10039413
test esi, esi
je 0x10039413
mov eax, dword [esi]
test eax, eax
je 0x100393fa
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1003940a
push eax
call sub.mfc90.dll_Ordinal_266
add esp, 4
push esi
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov esi, dword [edi + 0x178]
test esi, esi
jne 0x10039427
push 0x80004003
call fcn.1003e8a0
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 0
push esi
call eax
test eax, eax
jge 0x10039441
push 0x10047c78
push esi
push eax
call fcn.1003e8c0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4