Function at 0x103db90
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x5018
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 9
mov esi, 0x10099bc
lea edi, [ebp - 0x4458]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x1008], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1006]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x4430], dx
push 0xffe
push 0
lea eax, [ebp - 0x442e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x3428], cx
push 0xffe
push 0
lea edx, [ebp - 0x3426]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x23d0], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x23ce]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x2420], dx
push 0x44
push 0
lea eax, [ebp - 0x241e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x2424], 0
mov dword [ebp - 0x23d4], 0
mov dword [ebp - 0x342c], 0
mov dword [ebp - 0x3430], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x1009984
call fcn.010429b0
add esp, 0xc
push 0x104c7ec
call dword [0x104ef44]
test eax, eax
jne 0x103dd00
cmp dword [0x104e7a8], 0
je 0x103dcf5
cmp dword [0x104e0cc], 0
je 0x103dcf5
lea eax, [ebp - 0x4458]
push eax
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103dd27
cmp dword [0x104e0cc], 0
je 0x103dd27
lea ecx, [ebp - 0x4458]
push ecx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov edx, dword [0x104c954]
mov dword [ebp - 0x342c], edx
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103dd65
cmp dword [0x104e0cc], 0
je 0x103dd65
lea eax, [ebp - 0x4458]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp - 0x342c], 0
jne 0x103dd75
xor eax, eax
jmp 0x103e19d
push 0
push 0
call fcn.01041d00
add esp, 8
test eax, eax
jne 0x103dd8c
xor eax, eax
jmp 0x103e19d
push 0x100994c
lea ecx, [ebp - 0x1bd0]
push ecx
call fcn.0101a5a0
add esp, 8
lea edx, [ebp - 0x4458]
push edx
push 1
lea eax, [ebp - 0x1bd0]
push eax
call fcn.0101a630
add esp, 0xc
test eax, eax
jne 0x103ddc3
xor eax, eax
jmp 0x103e19d
push 0x1004f14
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x5018]
push edx
lea eax, [ebp - 0x1bd0]
push eax
call fcn.01041e30
add esp, 0x10
test eax, eax
je 0x103e045
push 0x104c7ec
call dword [0x104ef44]
test eax, eax
jne 0x103de2b
cmp dword [0x104e7a8], 0
je 0x103de20
cmp dword [0x104e0cc], 0
je 0x103de20
lea ecx, [ebp - 0x4458]
push ecx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103de52
cmp dword [0x104e0cc], 0
je 0x103de52
lea edx, [ebp - 0x4458]
push edx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0x23d4], 0
jmp 0x103de6d
mov eax, dword [ebp - 0x23d4]
add eax, 1
mov dword [ebp - 0x23d4], eax
mov ecx, dword [ebp - 0x23d4]
cmp ecx, dword [ebp - 0x342c]
jge 0x103e003
push 0
push 0x104c94c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
je 0x103dffe
push 0x1000
lea edx, [ebp - 0x3428]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp - 0x1010]
mov ecx, dword [eax + 0x24]
push ecx
call fcn.01042360
add esp, 0x14
lea edx, [ebp - 0x2420]
push edx
mov eax, dword [ebp - 0x1010]
push eax
call fcn.0103a700
add esp, 8
push 0x104ee20
lea ecx, [ebp - 0x2420]
push ecx
lea edx, [ebp - 0x3428]
push edx
mov eax, dword [ebp - 0x1010]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x1010]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x1010]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x1010]
mov ecx, dword [eax + 0x10]
push ecx
push 0x1009730
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.01011d00
add esp, 0x28
mov word [ebp - 0x23d0], 0
movzx eax, word [ebp - 0x23d0]
mov dword [ebp - 0x3430], eax
lea ecx, [ebp - 0x4458]
push ecx
push 0x400
lea edx, [ebp - 0x23d0]
push edx
lea eax, [ebp - 0x3430]
push eax
push 1
push 1
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x5018]
push edx
call fcn.0101a970
add esp, 0x20
xor eax, eax
cmp dword [ebp - 0x3430], 0
setne al
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
jne 0x103dfaa
mov ecx, dword [ebp - 0x2424]
add ecx, 1
mov dword [ebp - 0x2424], ecx
jmp 0x103dfd0
lea edx, [ebp - 0x1008]
push edx
push 0x126
push 0
push 1
call fcn.01028fb0
add esp, 0x10
cmp dword [ebp - 0x3430], 0x2714
jne 0x103dfd0
jmp 0x103e003
mov eax, dword [ebp - 0x1010]
cmp dword [eax + 0x24], 0
je 0x103dfee
mov ecx, dword [ebp - 0x1010]
mov edx, dword [ecx + 0x24]
push edx
call fcn.01011d50
add esp, 4
push 0
push 0x104c94c
call dword [sym.imp.SQLSVC90.dll_SHRecMemDelete]
add esp, 8
jmp 0x103de5e
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e035
cmp dword [0x104e0cc], 0
je 0x103e035
lea eax, [ebp - 0x4458]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
lea ecx, [ebp - 0x5018]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
lea edx, [ebp - 0x1bd0]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
call fcn.0103e1c0
cmp dword [ebp + 0xc], 0
je 0x103e176
push 0x104c7ec
call dword [0x104ef44]
test eax, eax
jne 0x103e0a5
cmp dword [0x104e7a8], 0
je 0x103e09a
cmp dword [0x104e0cc], 0
je 0x103e09a
lea eax, [ebp - 0x4458]
push eax
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e0cc
cmp dword [0x104e0cc], 0
je 0x103e0cc
lea ecx, [ebp - 0x4458]
push ecx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0x23d4], 0
jmp 0x103e0e7
mov edx, dword [ebp - 0x23d4]
add edx, 1
mov dword [ebp - 0x23d4], edx
mov eax, dword [ebp - 0x23d4]
cmp eax, dword [0x104c954]
jge 0x103e144
push 0
push 0x104c94c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
je 0x103e142
mov ecx, dword [ebp - 0x1010]
cmp dword [ecx + 0x24], 0
je 0x103e132
mov edx, dword [ebp - 0x1010]
mov eax, dword [edx + 0x24]
push eax
call fcn.01011d50
add esp, 4
push 0
push 0x104c94c
call dword [sym.imp.SQLSVC90.dll_SHRecMemDelete]
add esp, 8
jmp 0x103e0d8
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e176
cmp dword [0x104e0cc], 0
je 0x103e176
lea ecx, [ebp - 0x4458]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp - 0x2424], 0
je 0x103e197
mov edx, dword [ebp - 0x2424]
push edx
push 0x12b
push 0
push 3
call fcn.01028fb0
add esp, 0x10
mov eax, dword [ebp - 0x2424]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret