Function at 0x103c8b0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3d24
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x1008f7c
lea edi, [ebp - 0x30e4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x30b8], 0
push 0x32e
push 0
lea eax, [ebp - 0x30b6]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0xe18], 0
push 0x3fe
push 0
lea ecx, [ebp - 0xe16]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x3d10], 0
push 0x64
push 0
lea edx, [ebp - 0x3d0c]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0xa18], 0
push 0x7fe
push 0
lea eax, [ebp - 0xa16]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x210
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0x1618], 0
push 0x7fe
push 0
lea edx, [ebp - 0x1616]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0x1e18], 0
push 0x7fe
push 0
lea eax, [ebp - 0x1e16]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x2d80], 0
push 0x39c
push 0
lea ecx, [ebp - 0x2d7c]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x29e0], 0
push 0xbbc
push 0
lea edx, [ebp - 0x29dc]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x3ca8], 0
push 0xbbc
push 0
lea eax, [ebp - 0x3ca4]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x2d84], 0
mov dword [ebp - 0x1e1c], 0
mov dword [ebp - 0x30e8], 0
lea ecx, [ebp - 0xa18]
mov dword [ebp - 0x3d08], ecx
mov edx, dword [ebp + 8]
add edx, 0x114
push edx
call fcn.01042790
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0x21c
push eax
call fcn.01042790
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x3b4
push ecx
call fcn.01042790
add esp, 4
mov edx, dword [ebp + 8]
add edx, 0x3f4
push edx
call fcn.01042790
add esp, 4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x114]
test ecx, ecx
je 0x103cae3
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp + 8]
add eax, 0x114
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x30b8]
push ecx
push 0x84
mov edx, dword [ebp + 8]
add edx, 0x114
push edx
call fcn.01010390
test eax, eax
jge 0x103cae3
jmp 0x103d174
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x21c]
test ecx, ecx
je 0x103cb41
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp + 8]
add eax, 0x21c
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x30b8]
push ecx
push 0xcc
mov edx, dword [ebp + 8]
add edx, 0x21c
push edx
call fcn.01010390
test eax, eax
jge 0x103cb41
jmp 0x103d174
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x3b4]
test ecx, ecx
je 0x103cb9c
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp + 8]
add eax, 0x3b4
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x30b8]
push ecx
push 0x20
mov edx, dword [ebp + 8]
add edx, 0x3b4
push edx
call fcn.01010390
test eax, eax
jge 0x103cb9c
jmp 0x103d174
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x3f4]
test ecx, ecx
je 0x103cbfa
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp + 8]
add eax, 0x3f4
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x30b8]
push ecx
push 0x84
mov edx, dword [ebp + 8]
add edx, 0x3f4
push edx
call fcn.01010390
test eax, eax
jge 0x103cbfa
jmp 0x103d174
push 0x1008f60
lea eax, [ebp - 0x29e0]
push eax
call fcn.0101a5a0
add esp, 8
push 0
push 1
lea ecx, [ebp - 0x29e0]
push ecx
call fcn.0101a630
add esp, 0xc
mov dword [ebp - 0x2d84], eax
cmp dword [ebp - 0x2d84], 0
jne 0x103cc54
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x119
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x103d174
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x1008f24
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
lea edx, [ebp - 0x3ca8]
push edx
lea eax, [ebp - 0x29e0]
push eax
call fcn.0103d1f0
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x103cc91
jmp 0x103d174
lea ecx, [ebp - 0x3d10]
push ecx
lea edx, [ebp - 0x29e0]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLSetUserData]
add esp, 8
lea eax, [ebp - 0x3d10]
push eax
lea ecx, [ebp - 0x3ca8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLSetUserData]
add esp, 8
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x103ccd3
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x103cfa5
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x103ccff
mov edx, dword [ebp + 8]
add edx, 0x114
push edx
mov eax, dword [ebp + 8]
add eax, 0x3f4
push eax
push 0x138
push 0
push 2
call fcn.01028fb0
add esp, 0x14
lea ecx, [ebp - 0x3d14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2d80]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x3ca8]
push eax
call fcn.0103d640
add esp, 0x18
test eax, eax
jne 0x103cd36
jmp 0x103d174
cmp dword [ebp - 0x3d14], 0
jne 0x103cd90
push 0x200
lea ecx, [ebp - 0xe18]
push ecx
push 0x12c
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1008f0c
lea eax, [ebp - 0xe18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.01011d00
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 - 2], 0
jmp 0x103d174
movzx edx, word [ebp - 0x2c6c]
test edx, edx
je 0x103cdd5
push 0x330
lea eax, [ebp - 0x30b8]
push eax
push 0x1001b30
push 0x1001b2c
lea ecx, [ebp - 0x2c6c]
push ecx
call fcn.01042360
add esp, 0x14
lea edx, [ebp - 0x30b8]
push edx
push 0x68
lea eax, [ebp - 0x2c6c]
push eax
call fcn.01010390
movzx ecx, word [ebp - 0x2b9c]
test ecx, ecx
je 0x103ce1a
push 0x330
lea edx, [ebp - 0x30b8]
push edx
push 0x1001b30
push 0x1001b2c
lea eax, [ebp - 0x2b9c]
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x30b8]
push ecx
push 0x68
lea edx, [ebp - 0x2b9c]
push edx
call fcn.01010390
movzx eax, word [ebp - 0x2acc]
test eax, eax
je 0x103ce5f
push 0x330
lea ecx, [ebp - 0x30b8]
push ecx
push 0x1001b30
push 0x1001b2c
lea edx, [ebp - 0x2acc]
push edx
call fcn.01042360
add esp, 0x14
lea eax, [ebp - 0x30b8]
push eax
push 0x68
lea ecx, [ebp - 0x2acc]
push ecx
call fcn.01010390
lea edx, [ebp - 0x2acc]
push edx
mov eax, dword [ebp - 0x29e4]
push eax
mov ecx, dword [ebp - 0x29e8]
push ecx
mov edx, dword [ebp - 0x29ec]
push edx
mov eax, dword [ebp - 0x29f0]
push eax
mov ecx, dword [ebp - 0x29f4]
push ecx
mov edx, dword [ebp - 0x29f8]
push edx
mov eax, dword [ebp - 0x29fc]
push eax
lea ecx, [ebp - 0x2b9c]
push ecx
lea edx, [ebp - 0x2c6c]
push edx
mov eax, dword [ebp - 0x2c74]
push eax
push 0x1008f0c
push 0x1008f0c
push 0x1008f0c
push 0x1008b50
push 0x3ff
lea ecx, [ebp - 0x1618]
push ecx
call fcn.01011d00
add esp, 0x44
lea edx, [ebp - 0x1618]
push edx
lea eax, [ebp - 0x29e0]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLPurgeExec]
add esp, 8
test eax, eax
je 0x103cefe
mov dword [ebp - 0x1e1c], 1
jmp 0x103cfa5
push 0x400
lea ecx, [ebp - 0x1e18]
push ecx
lea edx, [ebp - 0x29e0]
push edx
call fcn.0103d570
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x103cf2b
mov dword [ebp - 0x30e8], 1
mov word [ebp - 0xe18], 0
push 0x200
lea ecx, [ebp - 0xe18]
push ecx
push 0x1a1
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
movzx eax, word [ebp - 0x1e18]
test eax, eax
je 0x103cf6b
lea ecx, [ebp - 0x1e18]
mov dword [ebp - 0x3d1c], ecx
jmp 0x103cf75
mov dword [ebp - 0x3d1c], 0x1008b38
mov edx, dword [ebp - 0x3d1c]
push edx
push 0x1008f0c
lea eax, [ebp - 0xe18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.01011d00
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 - 2], 0
mov edx, dword [ebp + 8]
cmp dword [edx], 1
je 0x103cfba
cmp dword [ebp - 0x30e8], 0
je 0x103d0d4
cmp dword [ebp - 0x30e8], 0
jne 0x103cfe7
mov eax, dword [ebp + 8]
add eax, 0x114
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x3f4
push ecx
push 0x139
push 0
push 2
call fcn.01028fb0
add esp, 0x14
mov dword [ebp - 0x3d18], 0x9000577
mov edx, dword [ebp - 0x3d18]
push edx
mov eax, dword [ebp + 8]
add eax, 0x114
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x10085e8
push 0x3ff
lea eax, [ebp - 0x1618]
push eax
call fcn.01011d00
add esp, 0x18
mov word [ebp - 0xe1a], 0
lea ecx, [ebp - 0x1618]
push ecx
lea edx, [ebp - 0x3ca8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLPurgeExec]
add esp, 8
test eax, eax
je 0x103d05f
push 0
push 0x104ca50
call fcn.0102d2f0
add esp, 8
mov dword [ebp - 0x1e1c], 1
jmp 0x103d0d4
cmp dword [ebp - 0x30e8], 0
jne 0x103d0d4
push 0x400
lea eax, [ebp - 0x1e18]
push eax
lea ecx, [ebp - 0x3ca8]
push ecx
call fcn.0103d570
add esp, 0xc
mov word [ebp - 0xe18], 0
push 0x200
lea edx, [ebp - 0xe18]
push edx
push 0x1a2
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x1e18]
push ecx
lea edx, [ebp - 0xe18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.01011d00
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2 - 2], 0
cmp dword [ebp - 0x1e1c], 0
je 0x103d174
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x103d0f5
mov dword [ebp - 0x3d20], 0x13b
jmp 0x103d133
mov edx, dword [ebp + 8]
cmp dword [edx], 1
jne 0x103d109
mov dword [ebp - 0x3d24], 0x13c
jmp 0x103d127
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xfffffeda
add ecx, 0x13d
mov dword [ebp - 0x3d24], ecx
mov edx, dword [ebp - 0x3d24]
mov dword [ebp - 0x3d20], edx
push 0x200
lea eax, [ebp - 0xe18]
push eax
mov ecx, dword [ebp - 0x3d20]
push ecx
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp + 8]
add eax, 0x114
push eax
lea ecx, [ebp - 0xe18]
push ecx
push 0x13a
push 0
push 4
call fcn.01028fb0
add esp, 0x14
cmp dword [ebp - 0x2d84], 0
je 0x103d19f
push 0
lea edx, [ebp - 0x29e0]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLSetUserData]
add esp, 8
lea eax, [ebp - 0x29e0]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 4], 0
je 0x103d1c7
push 0
lea ecx, [ebp - 0x3ca8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLSetUserData]
add esp, 8
lea edx, [ebp - 0x3ca8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
mov eax, dword [ebp - 0x1e1c]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret