Function at 0x103e9a0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x6744
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xc
mov esi, 0x100a574
lea edi, [ebp - 0x486c]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x6740], dx
push 0x1fe
push 0
lea eax, [ebp - 0x673e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x1410], cx
push 0xffe
push 0
lea edx, [ebp - 0x140e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x6430], ax
push 0xffe
push 0
lea ecx, [ebp - 0x642e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x2808], dx
push 0x7fe
push 0
lea eax, [ebp - 0x2806]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x4838], cx
push 0x2000
push 0
lea edx, [ebp - 0x4836]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x6540], ax
push 0xfe
push 0
lea ecx, [ebp - 0x653e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x282c], 0
mov dword [ebp - 0x1424], 0
mov dword [ebp - 0x1420], 0
mov dword [ebp - 0x2818], 0
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x141c], 0
mov dword [ebp - 0x2814], 0
mov dword [ebp - 0x2824], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x483c], 0
mov dword [ebp - 0x643c], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x2828], 0
mov dword [ebp - 0x2810], 0
mov dword [ebp - 0x2820], 0
mov dword [ebp - 0x6438], 0
mov dword [ebp - 0x280c], 0
mov dword [ebp - 0x1414], 0
mov dword [ebp - 0x6434], 0
mov edx, dword [ebp + 8]
push edx
push 0x100a538
call fcn.010429b0
add esp, 8
cmp dword [ebp + 8], 0
je 0x103ebb5
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x103ebb5
cmp dword [0x104f550], 0
je 0x103ebbc
xor eax, eax
jmp 0x103f6d0
push 0x100994c
lea edx, [ebp - 0x2008]
push edx
call fcn.0101a5a0
add esp, 8
lea eax, [ebp - 0x486c]
push eax
push 1
lea ecx, [ebp - 0x2008]
push ecx
call fcn.0101a630
add esp, 0xc
test eax, eax
jne 0x103ebf5
xor eax, eax
jmp 0x103f6d0
mov dword [ebp - 0x1418], 1
push 0x1004ed8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x5430]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.01041e30
add esp, 0x10
test eax, eax
je 0x103f4b9
push 0xa
push 0x1c
lea edx, [ebp - 0x1444]
push edx
call dword [sym.imp.SQLSVC90.dll_SHRecMemInit]
add esp, 0xc
cmp dword [0x104f554], 0
jne 0x103ed40
cmp dword [0x104dd98], 0
jne 0x103ed40
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x18f
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x100a528
push 0x100155c
lea edx, [ebp - 0x408]
push edx
push 0x1001
lea eax, [ebp - 0x4838]
push eax
call fcn.01011d00
add esp, 0x14
lea ecx, [ebp - 0x4838]
push ecx
push 0x100a510
push 0x100a008
push 0x800
lea edx, [ebp - 0x1410]
push edx
call fcn.01011d00
add esp, 0x14
lea eax, [ebp - 0x486c]
push eax
push 0x800
lea ecx, [ebp - 0x6430]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x5430]
push ecx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x103ed08
cmp dword [ebp - 0x2828], 0
je 0x103ed36
cmp dword [ebp - 0x2828], 0x38cd
je 0x103ed20
cmp dword [ebp - 0x2828], 0xc350
jne 0x103ed2a
mov dword [0x104f550], 1
jmp 0x103f499
mov dword [0x104f554], 1
push 0
lea edx, [ebp - 0x6438]
push edx
lea eax, [ebp - 0x2820]
push eax
call fcn.0102a6a0
add esp, 0xc
mov eax, dword [ebp - 0x6438]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov eax, dword [ebp - 0x6438]
cdq
mov ecx, 0x2710
idiv ecx
mov eax, edx
cdq
mov ecx, 0x64
idiv ecx
push eax
mov eax, dword [ebp - 0x6438]
cdq
mov ecx, 0x2710
idiv ecx
push eax
mov eax, dword [ebp - 0x2820]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov eax, dword [ebp - 0x2820]
cdq
mov ecx, 0x2710
idiv ecx
mov eax, edx
cdq
mov ecx, 0x64
idiv ecx
push eax
mov eax, dword [ebp - 0x2820]
cdq
mov ecx, 0x2710
idiv ecx
push eax
push 0x1009fc0
push 0x100
lea edx, [ebp - 0x6740]
push edx
call fcn.01011d00
add esp, 0x24
push 0x80
lea eax, [ebp - 0x6540]
push eax
call fcn.010421b0
add esp, 8
lea ecx, [ebp - 0x6540]
push ecx
mov edx, dword [0x104e0e0]
push edx
lea eax, [ebp - 0x6740]
push eax
push 0x104ee20
push 0x1009eb8
push 0x800
lea ecx, [ebp - 0x1410]
push ecx
call fcn.01011d00
add esp, 0x1c
lea edx, [ebp - 0x486c]
push edx
push 0x800
lea eax, [ebp - 0x6430]
push eax
lea ecx, [ebp - 0x2828]
push ecx
push 0
push 1
lea edx, [ebp - 0x1410]
push edx
lea eax, [ebp - 0x5430]
push eax
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x103efa9
cmp dword [ebp - 0x2828], 0
jne 0x103efa9
lea ecx, [ebp - 0x6434]
push ecx
lea edx, [ebp - 0x2824]
push edx
push 4
push 0xfffffffffffffff0
push 1
lea eax, [ebp - 0x5430]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6434]
push ecx
lea edx, [ebp - 4]
push edx
push 4
push 0xfffffffffffffff0
push 2
lea eax, [ebp - 0x5430]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6434]
push ecx
lea edx, [ebp - 0x281c]
push edx
push 4
push 0xfffffffffffffff0
push 3
lea eax, [ebp - 0x5430]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x5430]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x103eefc
jmp 0x103eee3
lea edx, [ebp - 0x5430]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x103ee7a
lea eax, [ebp - 0x5430]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLPurgeResults]
add esp, 4
cmp dword [ebp - 0x2824], 0
jne 0x103ef34
cmp dword [ebp - 4], 0
je 0x103ef94
cmp dword [0x104bd30], 0
je 0x103ef8a
cmp dword [ebp - 0x2824], 0
je 0x103ef60
mov ecx, dword [ebp + 8]
push ecx
push 0x104ee20
push 0x122
push 0
push 1
call fcn.01028fb0
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x103ef80
mov edx, dword [ebp + 8]
push edx
push 0x104ee20
push 0x123
push 0
push 1
call fcn.01028fb0
add esp, 0x14
mov dword [0x104bd30], 0
jmp 0x103f499
cmp dword [ebp - 0x281c], 0
jne 0x103efa7
jmp 0x103f499
jmp 0x103efc3
lea eax, [ebp - 0x5430]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLPurgeResults]
add esp, 4
jmp 0x103f499
mov dword [0x104bd30], 1
mov ecx, dword [0x104e30c]
push ecx
lea edx, [ebp - 0x1444]
push edx
lea eax, [ebp - 0x5430]
push eax
call fcn.0101f710
add esp, 0xc
mov dword [ebp - 0x483c], eax
cmp dword [ebp - 0x483c], 0
je 0x103f3d0
mov dword [ebp - 0x2810], 0
jmp 0x103f018
mov ecx, dword [ebp - 0x2810]
add ecx, 1
mov dword [ebp - 0x2810], ecx
mov edx, dword [ebp - 0x2810]
cmp edx, dword [ebp - 0x143c]
jge 0x103f3d0
push 0
mov eax, dword [0x104e760]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x103f044
jmp 0x103f3d0
mov dword [ebp - 0x2814], 0
mov ecx, dword [ebp - 0x2814]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
mov dword [ebp - 0x1424], edx
mov word [ebp - 0x2808], 0
mov dword [ebp - 0x1414], 0
mov eax, dword [ebp - 0x1414]
mov dword [ebp - 0x2828], eax
mov ecx, dword [ebp - 0x2810]
push ecx
lea edx, [ebp - 0x1444]
push edx
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x282c], eax
cmp dword [ebp - 0x282c], 0
je 0x103f3cb
mov eax, dword [ebp - 0x282c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x6744], ecx
cmp dword [ebp - 0x6744], 1
je 0x103f0d5
cmp dword [ebp - 0x6744], 2
je 0x103f125
jmp 0x103f17f
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x1420]
push eax
lea ecx, [ebp - 0x1414]
push ecx
push 0x400
lea edx, [ebp - 0x2808]
push edx
mov eax, dword [ebp - 0x282c]
push eax
lea ecx, [ebp - 0x2008]
push ecx
lea edx, [ebp - 0x5430]
push edx
call fcn.0103f6f0
add esp, 0x20
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1424], eax
jmp 0x103f1a6
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x141c]
push ecx
push 0x400
lea edx, [ebp - 0x2808]
push edx
mov eax, dword [ebp - 0x282c]
push eax
lea ecx, [ebp - 0x2008]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0103ff70
add esp, 0x1c
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1424], eax
cmp dword [ebp - 0x2814], 0
je 0x103f17d
mov eax, dword [ebp - 0x282c]
mov ecx, dword [eax]
mov dword [ebp - 0x280c], ecx
jmp 0x103f1a6
push 0x400
lea edx, [ebp - 0x2808]
push edx
push 0x125
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x1424], 1
cmp dword [ebp - 0x2814], 0
je 0x103f1b4
jmp 0x103f3d0
cmp dword [ebp - 0x1424], 0
jne 0x103f2e1
mov ecx, dword [ebp - 0x282c]
mov edx, dword [ecx]
push edx
push 0x1009de8
push 0x800
lea eax, [ebp - 0x1410]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x486c]
push ecx
push 0x800
lea edx, [ebp - 0x6430]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x5430]
push edx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x103f22f
cmp dword [ebp - 0x2828], 0
je 0x103f244
mov eax, dword [ebp - 0x282c]
cmp dword [eax + 4], 7
jne 0x103f296
cmp dword [ebp - 0x2828], 0
jne 0x103f296
cmp dword [ebp - 0x1420], 0
je 0x103f285
lea ecx, [ebp - 0x486c]
push ecx
push 0x800
lea edx, [ebp - 0x6430]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
push 0x1009d98
lea ecx, [ebp - 0x2008]
push ecx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
mov edx, dword [ebp - 0x643c]
add edx, 1
mov dword [ebp - 0x643c], edx
jmp 0x103f2dc
cmp dword [ebp - 0x1420], 0
je 0x103f2d7
lea eax, [ebp - 0x486c]
push eax
push 0x800
lea ecx, [ebp - 0x6430]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
push 0x1009d40
lea eax, [ebp - 0x2008]
push eax
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
jmp 0x103f3d0
jmp 0x103f3cb
cmp dword [ebp - 0x1420], 0
je 0x103f322
lea ecx, [ebp - 0x486c]
push ecx
push 0x800
lea edx, [ebp - 0x6430]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
push 0x1009d40
lea ecx, [ebp - 0x2008]
push ecx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
movzx edx, word [ebp - 0x2808]
test edx, edx
je 0x103f3c9
cmp dword [ebp - 0x1414], 0x21cb
je 0x103f3c9
push 0x2002
lea eax, [ebp - 0x4838]
push eax
push 0x1001b30
push 0x1001b2c
lea ecx, [ebp - 0x2808]
push ecx
call fcn.01042360
add esp, 0x14
mov edx, dword [ebp - 0x282c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x4838]
push ecx
push 0x1009c98
push 0x800
lea edx, [ebp - 0x1410]
push edx
call fcn.01011d00
add esp, 0x14
lea eax, [ebp - 0x486c]
push eax
push 0x800
lea ecx, [ebp - 0x6430]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x5430]
push ecx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
jmp 0x103f3d0
jmp 0x103f009
cmp dword [ebp - 0x643c], 0
je 0x103f431
push 0x104ee20
push 0x1009c18
push 0x800
lea edx, [ebp - 0x1410]
push edx
call fcn.01011d00
add esp, 0x10
lea eax, [ebp - 0x486c]
push eax
push 0x800
lea ecx, [ebp - 0x6430]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x5430]
push ecx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x141c], 0
je 0x103f499
push 0x104ee20
mov edx, dword [0x104e0e0]
push edx
push 0x1009b68
push 0x800
lea eax, [ebp - 0x1410]
push eax
call fcn.01011d00
add esp, 0x14
lea ecx, [ebp - 0x486c]
push ecx
push 0x800
lea edx, [ebp - 0x6430]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x5430]
push edx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
lea eax, [ebp - 0x1444]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemFree]
add esp, 4
lea ecx, [ebp - 0x5430]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x1418], 0
je 0x103f6a2
cmp dword [ebp - 0x40c], 0
je 0x103f556
push 0
push 0
call fcn.01041d00
add esp, 8
test eax, eax
jne 0x103f556
mov edx, dword [ebp + 8]
push edx
push 0x1009af0
push 0x800
lea eax, [ebp - 0x1410]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x486c]
push ecx
push 0x800
lea edx, [ebp - 0x6430]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x2008]
push edx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x103f556
cmp dword [ebp - 0x2828], 0
jne 0x103f556
mov dword [ebp - 0x40c], 0
cmp dword [ebp - 0x2814], 0
je 0x103f692
lea eax, [ebp - 0x486c]
push eax
push 0x800
lea ecx, [ebp - 0x6430]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
push 0x1009aac
lea eax, [ebp - 0x2008]
push eax
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2828], 0
je 0x103f683
movzx ecx, word [ebp - 0x6430]
test ecx, ecx
je 0x103f683
cmp dword [ebp - 0x280c], 0
je 0x103f683
push 0x1004ed8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x5430]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.01041e30
add esp, 0x10
test eax, eax
je 0x103f681
push 0x2002
lea edx, [ebp - 0x4838]
push edx
push 0x1001b30
push 0x1001b2c
lea eax, [ebp - 0x6430]
push eax
call fcn.01042360
add esp, 0x14
mov ecx, dword [ebp - 0x280c]
push ecx
lea edx, [ebp - 0x4838]
push edx
push 0x1009c98
push 0x800
lea eax, [ebp - 0x1410]
push eax
call fcn.01011d00
add esp, 0x14
lea ecx, [ebp - 0x486c]
push ecx
push 0x800
lea edx, [ebp - 0x6430]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x5430]
push edx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x2818], eax
lea eax, [ebp - 0x5430]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
jmp 0x103f692
mov ecx, dword [ebp - 0x643c]
add ecx, 1
mov dword [ebp - 0x643c], ecx
lea edx, [ebp - 0x2008]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x483c], 0
je 0x103f6ca
mov eax, dword [ebp - 0x483c]
push eax
mov ecx, dword [ebp - 0x643c]
push ecx
push 0x121
push 0
push 3
call fcn.01028fb0
add esp, 0x14
mov eax, dword [ebp - 0x643c]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret