Function at 0x10405c0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0xa314
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x100c33c
lea edi, [ebp - 0x6d84]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0xa068], ax
push 0x32d2
push 0
lea ecx, [ebp - 0xa066]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x6d58], dx
push 0x7fe
push 0
lea eax, [ebp - 0x6d56]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x6458], cx
push 0x32d2
push 0
lea edx, [ebp - 0x6456]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
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 dword [ebp - 0x4a4], 0
mov dx, word [0x10015d4]
mov word [ebp - 0x3180], dx
push 0x400
push 0
lea eax, [ebp - 0x317e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x6558], cx
push 0xfe
push 0
lea edx, [ebp - 0x6556]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x1eb0], ax
push 0xfe
push 0
lea ecx, [ebp - 0x1eae]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x1eb8], 0
mov dword [ebp - 0x40c], 0
mov byte [ebp - 0x1db0], 0
push 0x1907
push 0
lea edx, [ebp - 0x1daf]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x6d88], 0
mov dword [ebp - 0x1ebc], 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x1eb4], 0
mov dword [ebp - 0x6d90], 0
mov dword [ebp - 0x6d8c], 0
mov dword [ebp - 0x47c], 0
push 0x100c30c
call fcn.010429b0
add esp, 4
cmp dword [ebp + 8], 0
je 0x104078f
cmp dword [ebp + 0xc], 0
je 0x104078f
cmp dword [ebp + 0x10], 0
jne 0x1040796
xor eax, eax
jmp 0x1041bea
push 0x69e
lea eax, [ebp - 0x6d84]
push eax
push 2
call fcn.01011700
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x10407c5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov word [ecx], 0
jmp 0x10407cc
xor eax, eax
jmp 0x1041bea
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x100c1b0
push 0x196a
lea ecx, [ebp - 0xa068]
push ecx
call fcn.01011d00
add esp, 0x14
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x1040810
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0xa2d4], edx
jmp 0x104081a
mov dword [ebp - 0xa2d4], 0
push 0x6a7
lea eax, [ebp - 0x6d84]
push eax
lea ecx, [ebp - 0xa068]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov edx, dword [ebp - 0xa2d4]
lea eax, [edx + eax*2 + 2]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.010119b0
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x10408b8
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x104087f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0xa2d8], eax
jmp 0x1040889
mov dword [ebp - 0xa2d8], 0
lea ecx, [ebp - 0xa068]
push ecx
lea edx, [ebp - 0xa068]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa2d8]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.01010f20
jmp 0x10408bf
xor eax, eax
jmp 0x1041bea
mov edx, dword [ebp + 0xc]
push edx
push 0x100be28
push 0x400
lea eax, [ebp - 0x6d58]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x6d58]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x1040dc0
push 0xe94
push 0
lea eax, [ebp - 0x2d78]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2d68]
push edx
push 0x108
push 0xfffffffffffffff8
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2b58]
push edx
push 4
push 0xfffffffffffffff0
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x3180]
push edx
push 0x200
push 0xfffffffffffffff8
push 3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2b54]
push edx
push 4
push 0xfffffffffffffff0
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a48]
push edx
push 4
push 0xfffffffffffffff0
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a44]
push edx
push 4
push 0xfffffffffffffff0
push 6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a40]
push edx
push 4
push 0xfffffffffffffff0
push 7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a3c]
push edx
push 4
push 0xfffffffffffffff0
push 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a38]
push edx
push 4
push 0xfffffffffffffff0
push 9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a34]
push edx
push 4
push 0xfffffffffffffff0
push 0xa
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a30]
push edx
push 4
push 0xfffffffffffffff0
push 0xb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a2c]
push edx
push 4
push 0xfffffffffffffff0
push 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x6558]
push edx
push 0x100
push 0xfffffffffffffff8
push 0xd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x1eb0]
push edx
push 0x100
push 0xfffffffffffffff8
push 0xe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x6d8c]
push ecx
lea edx, [ebp - 0x2a24]
push edx
push 4
push 0xfffffffffffffff0
push 0xf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x1040da8
push 0x32d4
lea edx, [ebp - 0x6458]
push edx
push 0x1001b30
push 0x1001b2c
lea eax, [ebp - 0x2d68]
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x6458]
push ecx
push 0x84
lea edx, [ebp - 0x2d68]
push edx
call fcn.01010390
push 0x32d4
lea eax, [ebp - 0x6458]
push eax
push 0x1001b30
push 0x1001b2c
lea ecx, [ebp - 0x3180]
push ecx
call fcn.01042360
add esp, 0x14
lea edx, [ebp - 0x6458]
push edx
push 0x201
lea eax, [ebp - 0x3180]
push eax
call fcn.01010390
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
push 0x84
lea edx, [ebp - 0x2c60]
push edx
call fcn.01010390
push 0x100be00
push 0x84
lea eax, [ebp - 0x2b50]
push eax
call fcn.01010390
mov ecx, dword [ebp + 0xc]
push ecx
push 0x23
lea edx, [ebp - 0x1f34]
push edx
call fcn.01010390
cmp dword [ebp - 0x2a30], 0
je 0x1040bf8
cmp dword [ebp - 0x2a3c], 0
je 0x1040bf8
mov dword [ebp - 0xa2dc], 0x1008f0c
jmp 0x1040c02
mov dword [ebp - 0xa2dc], 0x10015d4
cmp dword [ebp - 0x2a34], 0
je 0x1040c20
cmp dword [ebp - 0x2a40], 0
je 0x1040c20
mov dword [ebp - 0xa2e0], 0x1008f0c
jmp 0x1040c2a
mov dword [ebp - 0xa2e0], 0x10015d4
cmp dword [ebp - 0x2a38], 0
je 0x1040c48
cmp dword [ebp - 0x2a44], 0
je 0x1040c48
mov dword [ebp - 0xa2e4], 0x1008f0c
jmp 0x1040c52
mov dword [ebp - 0xa2e4], 0x10015d4
mov eax, dword [ebp - 0x2a2c]
push eax
mov ecx, dword [ebp - 0xa2dc]
push ecx
mov edx, dword [ebp - 0xa2e0]
push edx
mov eax, dword [ebp - 0xa2e4]
push eax
mov ecx, dword [ebp - 0x2a3c]
push ecx
mov edx, dword [ebp - 0x2a40]
push edx
mov eax, dword [ebp - 0x2a44]
push eax
mov ecx, dword [ebp - 0x2a48]
push ecx
lea edx, [ebp - 0x2b50]
push edx
mov eax, dword [ebp - 0x2b54]
push eax
lea ecx, [ebp - 0x3180]
push ecx
mov edx, dword [ebp - 0x2b58]
push edx
lea eax, [ebp - 0x2d68]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c60]
push edx
push 0x100ba48
push 0x196a
lea eax, [ebp - 0xa068]
push eax
call fcn.01011d00
add esp, 0x48
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x1040cf4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa2e8], ecx
jmp 0x1040cfe
mov dword [ebp - 0xa2e8], 0
push 0x6ee
lea edx, [ebp - 0x6d84]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa2e8]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.010119b0
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1040d9c
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x1040d63
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa2ec], ecx
jmp 0x1040d6d
mov dword [ebp - 0xa2ec], 0
lea edx, [ebp - 0xa068]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa2ec]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.01010f20
jmp 0x1040da3
xor eax, eax
jmp 0x1041bea
jmp 0x1040b0a
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x104090f
jmp 0x1040e01
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x13e
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10015b4
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.01011d00
add esp, 0x10
xor eax, eax
jmp 0x1041bea
push 5
push 0x970
lea edx, [ebp - 0x1edc]
push edx
call dword [sym.imp.SQLSVC90.dll_SHRecMemInit]
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x1edc]
push eax
lea ecx, [ebp - 0x2d78]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101ed00
add esp, 0x14
test eax, eax
je 0x10415bb
cmp dword [ebp - 0x1ed4], 0
je 0x10415bb
mov dword [ebp - 0x4a0], 0
jmp 0x1040e66
mov eax, dword [ebp - 0x4a0]
add eax, 1
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
cmp ecx, dword [ebp - 0x1ed4]
jge 0x10415b9
mov edx, dword [ebp - 0x4a0]
push edx
lea eax, [ebp - 0x1edc]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x104159e
push 0x32d4
lea ecx, [ebp - 0x6458]
push ecx
push 0x1001b30
push 0x1001b2c
mov edx, dword [ebp - 4]
add edx, 4
push edx
call fcn.01042360
add esp, 0x14
lea eax, [ebp - 0x6458]
push eax
push 0x84
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.01010390
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18c], 0
je 0x1040f2c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18c]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
lea eax, [edx + edx + 0x1908]
mov dword [ebp - 0x47c], eax
push 0x70d
lea ecx, [ebp - 0x6d84]
push ecx
mov edx, dword [ebp - 0x47c]
push edx
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x4a4], eax
jmp 0x1040f57
mov dword [ebp - 0x47c], 0x1908
push 0x712
lea eax, [ebp - 0x6d84]
push eax
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
je 0x1040f6b
mov edx, dword [ebp - 0x4a4]
mov word [edx], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18c], 0
je 0x104102b
cmp dword [ebp - 0x4a4], 0
je 0x104102b
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x4a4]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18c]
push ecx
call fcn.01042360
add esp, 0x14
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18c]
push eax
call fcn.01011d50
add esp, 4
mov ecx, dword [ebp - 0x4a4]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0xa1a4], edx
push 0x71d
lea eax, [ebp - 0x6d84]
push eax
mov ecx, dword [ebp - 0xa1a4]
push ecx
call fcn.01011700
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x18c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18c], 0
je 0x104102b
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0xa1a4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18c]
push ecx
call fcn.01017240
push 0x32d4
lea edx, [ebp - 0x6458]
push edx
push 0x1001b30
push 0x1001b2c
mov eax, dword [ebp - 4]
add eax, 0x2b4
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x6458]
push ecx
push 0x84
mov edx, dword [ebp - 4]
add edx, 0x2b4
push edx
call fcn.01010390
push 0x32d4
lea eax, [ebp - 0x6458]
push eax
push 0x1001b30
push 0x1001b2c
mov ecx, dword [ebp - 4]
add ecx, 0x3bc
push ecx
call fcn.01042360
add esp, 0x14
lea edx, [ebp - 0x6458]
push edx
push 0x84
mov eax, dword [ebp - 4]
add eax, 0x3bc
push eax
call fcn.01010390
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4d0], 0
je 0x1041176
push 0x10015d4
push 0x196a
lea edx, [ebp - 0x6458]
push edx
call fcn.01010390
push 0x32d4
lea eax, [ebp - 0x6458]
push eax
push 0x1001b30
push 0x1001b2c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4d0]
push edx
call fcn.01042360
add esp, 0x14
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4d0]
push ecx
call fcn.01011d50
add esp, 4
lea edx, [ebp - 0x6458]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0xa1a8], eax
push 0x734
lea ecx, [ebp - 0x6d84]
push ecx
mov edx, dword [ebp - 0xa1a8]
push edx
call fcn.01011700
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4d0], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4d0], 0
je 0x1041176
lea eax, [ebp - 0x6458]
push eax
mov ecx, dword [ebp - 0xa1a8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4d0]
push eax
call fcn.01017240
mov cx, word [0x10015d4]
mov word [ebp - 0xa1a0], cx
push 0x132
push 0
lea edx, [ebp - 0xa19e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4d8], 0
je 0x104139a
cmp dword [0x104e54c], 0
je 0x1041353
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4d8]
push edx
push 0x100b9d0
push 0x400
lea eax, [ebp - 0x6d58]
push eax
call fcn.01011d00
add esp, 0x10
xor ecx, ecx
test eax, eax
setl cl
mov dword [ebp - 0xa1ac], ecx
cmp dword [ebp - 0xa1ac], 0
jne 0x10412fd
lea edx, [ebp - 0x6d58]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x10412fd
mov cx, word [0x10015d4]
mov word [ebp - 0xa2c0], cx
push 0x108
push 0
lea edx, [ebp - 0xa2be]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6d8c]
push eax
lea ecx, [ebp - 0xa2c0]
push ecx
push 0x84
push 0xfffffffffffffff8
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x10412f1
push 0x32d4
lea ecx, [ebp - 0x6458]
push ecx
push 0x1001b30
push 0x1001b2c
lea edx, [ebp - 0xa2c0]
push edx
call fcn.01042360
add esp, 0x14
lea eax, [ebp - 0x6458]
push eax
push 0x85
lea ecx, [ebp - 0xa2c0]
push ecx
call fcn.01010390
xor edx, edx
test eax, eax
setl dl
mov dword [ebp - 0xa1ac], edx
cmp dword [ebp - 0xa1ac], 0
jne 0x10412ef
lea eax, [ebp - 0xa2c0]
push eax
push 0x100b9a0
push 0x9a
lea ecx, [ebp - 0xa1a0]
push ecx
call fcn.01011d00
add esp, 0x10
xor edx, edx
test eax, eax
setl dl
mov dword [ebp - 0xa1ac], edx
jmp 0x10412fb
mov dword [ebp - 0xa1ac], 1
jmp 0x1041307
mov dword [ebp - 0xa1ac], 1
cmp dword [ebp - 0xa1ac], 0
je 0x1041351
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x1be
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10015b4
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.01011d00
add esp, 0x10
xor eax, eax
jmp 0x1041bea
jmp 0x104139a
push 0x200
lea edx, [ebp - 0x408]
push edx
push 0x1bf
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.01010390
lea ecx, [ebp - 0x1edc]
push ecx
call fcn.0101f3e0
add esp, 4
xor eax, eax
jmp 0x1041bea
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4d0], 0
je 0x10413b7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4d0]
mov dword [ebp - 0xa2f0], ecx
jmp 0x10413c1
mov dword [ebp - 0xa2f0], 0x10015d4
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18c], 0
je 0x10413de
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18c]
mov dword [ebp - 0xa2f4], ecx
jmp 0x10413e8
mov dword [ebp - 0xa2f4], 0x10015d4
lea edx, [ebp - 0xa1a0]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x194]
push ecx
mov edx, dword [ebp - 0xa2f0]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4cc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c4]
push edx
push 0x10015d4
mov eax, dword [ebp - 4]
add eax, 0x2b4
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1ac
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1a8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1a4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1a0]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x19c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x198]
push edx
mov eax, dword [ebp - 0xa2f4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x10c
push ecx
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x100b5b8
mov eax, dword [ebp - 0x47c]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.01011d00
add esp, 0x58
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x10414ca
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0xa2f8], edx
jmp 0x10414d4
mov dword [ebp - 0xa2f8], 0
push 0x7a6
lea eax, [ebp - 0x6d84]
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov edx, dword [ebp - 0xa2f8]
lea eax, [edx + eax*2 + 2]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.010119b0
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x1041572
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1041539
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0xa2fc], eax
jmp 0x1041543
mov dword [ebp - 0xa2fc], 0
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x4a4]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa2fc]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.01010f20
jmp 0x1041579
xor eax, eax
jmp 0x1041bea
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.01011d50
add esp, 4
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x47c], 0
jmp 0x10415b4
lea eax, [ebp - 0x1edc]
push eax
call fcn.0101f3e0
add esp, 4
xor eax, eax
jmp 0x1041bea
jmp 0x1040e57
jmp 0x104160b
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push 0x140
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10015b4
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.01011d00
add esp, 0x10
lea eax, [ebp - 0x1edc]
push eax
call fcn.0101f3e0
add esp, 4
xor eax, eax
jmp 0x1041bea
lea ecx, [ebp - 0x1edc]
push ecx
call fcn.0101f3e0
add esp, 4
mov word [ebp - 0x458], 0x2f30
push 0x44
push 0
lea edx, [ebp - 0x456]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x478]
push ecx
lea edx, [ebp - 0x49c]
push edx
lea eax, [ebp - 0x2d78]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0101db20
add esp, 0x18
test eax, eax
je 0x1041a5b
mov dword [ebp - 0x4a0], 0
jmp 0x1041683
mov edx, dword [ebp - 0x4a0]
add edx, 1
mov dword [ebp - 0x4a0], edx
mov eax, dword [ebp - 0x4a0]
cmp eax, dword [ebp - 0x494]
jge 0x1041a39
mov ecx, dword [ebp - 0x4a0]
push ecx
lea edx, [ebp - 0x49c]
push edx
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x6d88], eax
cmp dword [ebp - 0x6d88], 0
je 0x1041a2d
mov byte [ebp - 0xa2c9], 0
mov byte [ebp - 0xa2c1], 1
mov dword [ebp - 0xa2c8], 0
mov dword [ebp - 0xa2d0], 0
jmp 0x10416f2
mov eax, dword [ebp - 0xa2d0]
add eax, 1
mov dword [ebp - 0xa2d0], eax
cmp dword [ebp - 0xa2d0], 0x10
jge 0x104171a
mov ecx, dword [ebp - 0x6d88]
add ecx, dword [ebp - 0xa2d0]
movzx edx, byte [ecx + 4]
test edx, edx
je 0x1041718
mov byte [ebp - 0xa2c1], 0
jmp 0x104171a
jmp 0x10416e3
mov word [ebp - 0x458], 0
movzx eax, byte [ebp - 0xa2c1]
test eax, eax
je 0x1041743
push 0x100b5a8
push 0x23
lea ecx, [ebp - 0x458]
push ecx
call fcn.01010390
jmp 0x1041767
lea edx, [ebp - 0x458]
push edx
mov eax, dword [ebp - 0x6d88]
add eax, 4
push eax
call fcn.0103a840
add esp, 8
test eax, eax
jne 0x1041767
xor eax, eax
jmp 0x1041bea
push 0x32d4
lea ecx, [ebp - 0x6458]
push ecx
push 0x1001b30
push 0x1001b2c
mov edx, dword [ebp - 0x6d88]
add edx, 0x14
push edx
call fcn.01042360
add esp, 0x14
lea eax, [ebp - 0x6458]
push eax
push 0x84
mov ecx, dword [ebp - 0x6d88]
add ecx, 0x14
push ecx
call fcn.01010390
lea edx, [ebp - 0x2c60]
push edx
mov eax, dword [ebp - 0x6d88]
mov ecx, dword [eax + 0x144]
push ecx
mov edx, dword [ebp - 0x6d88]
mov eax, dword [edx + 0x140]
push eax
mov ecx, dword [ebp - 0x6d88]
mov edx, dword [ecx + 0x13c]
push edx
mov eax, dword [ebp - 0x6d88]
mov ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp - 0x6d88]
mov eax, dword [edx + 0x134]
push eax
mov ecx, dword [ebp - 0x6d88]
mov edx, dword [ecx + 0x130]
push edx
mov eax, dword [ebp - 0x6d88]
mov ecx, dword [eax + 0x12c]
push ecx
mov edx, dword [ebp - 0x6d88]
mov eax, dword [edx + 0x128]
push eax
mov ecx, dword [ebp - 0x6d88]
mov edx, dword [ecx + 0x124]
push edx
mov eax, dword [ebp - 0x6d88]
mov ecx, dword [eax + 0x120]
push ecx
mov edx, dword [ebp - 0x6d88]
mov eax, dword [edx + 0x11c]
push eax
lea ecx, [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x6d88]
add edx, 0x14
push edx
push 0x100b1c0
push 0x196a
lea eax, [ebp - 0xa068]
push eax
call fcn.01011d00
add esp, 0x44
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x104188d
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa300], ecx
jmp 0x1041897
mov dword [ebp - 0xa300], 0
push 0x82e
lea edx, [ebp - 0x6d84]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa300]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.010119b0
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1041935
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x10418fc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa304], ecx
jmp 0x1041906
mov dword [ebp - 0xa304], 0
lea edx, [ebp - 0xa068]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa304]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.01010f20
jmp 0x104193c
xor eax, eax
jmp 0x1041bea
mov edx, dword [ebp + 0xc]
push edx
push 0x100b0d8
push 0x196a
lea eax, [ebp - 0xa068]
push eax
call fcn.01011d00
add esp, 0x10
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x104197c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa308], ecx
jmp 0x1041986
mov dword [ebp - 0xa308], 0
push 0x834
lea edx, [ebp - 0x6d84]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa308]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.010119b0
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1041a24
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x10419eb
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa30c], ecx
jmp 0x10419f5
mov dword [ebp - 0xa30c], 0
lea edx, [ebp - 0xa068]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa30c]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.01010f20
jmp 0x1041a2b
xor eax, eax
jmp 0x1041bea
jmp 0x1041a34
xor eax, eax
jmp 0x1041bea
jmp 0x1041674
lea edx, [ebp - 0x49c]
push edx
call dword [sym.imp.SQLSVC90.dll_SHRecMemFree]
add esp, 4
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemFree]
add esp, 4
jmp 0x1041a9c
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push 0x141
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10015b4
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.01011d00
add esp, 0x10
xor eax, eax
jmp 0x1041bea
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x132
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x408]
push eax
push 0x196a
lea ecx, [ebp - 0x6458]
push ecx
call fcn.01011d00
add esp, 0x10
lea edx, [ebp - 0x6458]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1ebc]
push ecx
lea edx, [ebp - 0x1eb0]
push edx
lea eax, [ebp - 0x6558]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100aeb8
push 0x196a
lea edx, [ebp - 0xa068]
push edx
call fcn.01011d00
add esp, 0x24
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1041b39
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0xa310], eax
jmp 0x1041b43
mov dword [ebp - 0xa310], 0
push 0x859
lea ecx, [ebp - 0x6d84]
push ecx
lea edx, [ebp - 0xa068]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa310]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.010119b0
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1041be1
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x1041ba8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xa314], ecx
jmp 0x1041bb2
mov dword [ebp - 0xa314], 0
lea edx, [ebp - 0xa068]
push edx
lea eax, [ebp - 0xa068]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa314]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.01010f20
jmp 0x1041be5
xor eax, eax
jmp 0x1041bea
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret