Function at 0x103f6f0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x328c
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xc
mov esi, 0x100ac58
lea edi, [ebp - 0x2a5c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x1628], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1626]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x2a28], dx
push 0x400
push 0
lea eax, [ebp - 0x2a26]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x3268], cx
push 0x804
push 0
lea edx, [ebp - 0x3266]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x1680], ax
push 0x44
push 0
lea ecx, [ebp - 0x167e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x620], dx
push 0x3fe
push 0
lea eax, [ebp - 0x61e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x1780], cx
push 0xfe
push 0
lea edx, [ebp - 0x177e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x1784], 0
mov dword [ebp - 0x1634], 0
mov dword [ebp - 0x3274], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x220], ax
push 0x210
push 0
lea ecx, [ebp - 0x21e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x3270], 0
mov dword [ebp - 0x1788], 0
mov dword [ebp - 0x162c], 0
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x1630], 0
mov dword [ebp - 0x326c], 0
push 0x100ac20
call fcn.010429b0
add esp, 4
mov edx, dword [ebp + 0x10]
add edx, 0xc
push edx
call fcn.01039470
add esp, 4
test eax, eax
je 0x103f8a7
lea eax, [ebp - 0x1680]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
push ecx
call fcn.0103a700
add esp, 8
jmp 0x103f8ce
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
je 0x103f8ce
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x16
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
jmp 0x103ff41
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 1
je 0x103f8e9
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 2
je 0x103f8e9
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
jne 0x103f93e
cmp dword [ebp + 0x20], 0
jne 0x103f8f6
xor eax, eax
jmp 0x103ff41
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
lea ecx, [ebp - 0x2a5c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1788]
push ecx
push 1
push 1
push 0x100abfc
mov edx, dword [ebp + 0xc]
push edx
call fcn.0101a970
add esp, 0x20
test eax, eax
je 0x103f937
cmp dword [ebp - 0x1788], 0
je 0x103f93e
xor eax, eax
jmp 0x103ff41
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3278], ecx
mov edx, dword [ebp - 0x3278]
sub edx, 1
mov dword [ebp - 0x3278], edx
cmp dword [ebp - 0x3278], 4
ja case.default.0x103f96c
mov eax, dword [ebp - 0x3278]
jmp dword [eax*4 + 0x103ff54]
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x3274]
push eax
lea ecx, [ebp - 0x1680]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.010405c0
add esp, 0x14
test eax, eax
je 0x103fa13
lea eax, [ebp - 0x2a5c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1788]
push eax
push 1
push 1
mov ecx, dword [ebp - 0x3274]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0101a970
add esp, 0x20
test eax, eax
je 0x103f9dc
xor eax, eax
cmp dword [ebp - 0x1788], 0
sete al
mov dword [ebp - 0x1784], eax
cmp dword [ebp - 0x1784], 0
je 0x103f9f4
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
jmp 0x103fa13
cmp dword [0x104e2ec], 0
je 0x103fa13
mov ecx, dword [ebp - 0x3274]
push ecx
lea edx, [ebp - 0x1680]
push edx
call fcn.01041c00
add esp, 8
cmp dword [ebp - 0x3274], 0
je 0x103fa2b
mov eax, dword [ebp - 0x3274]
push eax
call fcn.01011d50
add esp, 4
jmp 0x103ff21
push 0xe94
push 0
lea ecx, [ebp - 0x2620]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x2a28]
push edx
lea eax, [ebp - 0x2620]
push eax
lea ecx, [ebp - 0x1680]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101d0b0
add esp, 0x14
test eax, eax
je 0x103fcf8
push 0x212
lea eax, [ebp - 0x220]
push eax
push 0x1001b30
push 0x1001b2c
lea ecx, [ebp - 0x2610]
push ecx
call fcn.01042360
add esp, 0x14
push 0x806
lea edx, [ebp - 0x3268]
push edx
push 0x1001b30
push 0x1001b2c
lea eax, [ebp - 0x2a28]
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x1680]
push ecx
push 0x100aad0
push 0x800
lea edx, [ebp - 0x1628]
push edx
call fcn.01011d00
add esp, 0x10
lea eax, [ebp - 0x2a5c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1788]
push eax
push 0
push 1
lea ecx, [ebp - 0x1628]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101a970
add esp, 0x20
mov dword [ebp - 0x1634], eax
cmp dword [ebp - 0x1634], 0
je 0x103fba0
cmp dword [ebp - 0x1788], 0
jne 0x103fba0
lea eax, [ebp - 0x326c]
push eax
lea ecx, [ebp - 0x1780]
push ecx
push 0x100
push 0xfffffffffffffff8
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x326c]
push eax
lea ecx, [ebp - 0x1630]
push ecx
push 4
push 0xfffffffffffffff0
push 2
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 0x103fb7f
jmp 0x103fb69
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x103fb24
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLPurgeResults]
add esp, 4
jmp 0x103fbaa
jmp 0x103fcf8
cmp dword [ebp - 0x22d8], 0
je 0x103fbc8
cmp dword [ebp - 0x22e4], 0
je 0x103fbc8
mov dword [ebp - 0x327c], 0x1008f0c
jmp 0x103fbd2
mov dword [ebp - 0x327c], 0x10015d4
cmp dword [ebp - 0x22dc], 0
je 0x103fbf0
cmp dword [ebp - 0x22e8], 0
je 0x103fbf0
mov dword [ebp - 0x3280], 0x1008f0c
jmp 0x103fbfa
mov dword [ebp - 0x3280], 0x10015d4
cmp dword [ebp - 0x22e0], 0
je 0x103fc18
cmp dword [ebp - 0x22ec], 0
je 0x103fc18
mov dword [ebp - 0x3284], 0x1008f0c
jmp 0x103fc22
mov dword [ebp - 0x3284], 0x10015d4
lea eax, [ebp - 0x17dc]
push eax
mov ecx, dword [ebp - 0x1630]
push ecx
lea edx, [ebp - 0x1780]
push edx
mov eax, dword [ebp - 0x22d4]
push eax
mov ecx, dword [ebp - 0x327c]
push ecx
mov edx, dword [ebp - 0x3280]
push edx
mov eax, dword [ebp - 0x3284]
push eax
mov ecx, dword [ebp - 0x22e4]
push ecx
mov edx, dword [ebp - 0x22e8]
push edx
mov eax, dword [ebp - 0x22ec]
push eax
mov ecx, dword [ebp - 0x22f0]
push ecx
mov edx, dword [ebp - 0x23fc]
push edx
lea eax, [ebp - 0x3268]
push eax
mov ecx, dword [ebp - 0x2400]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x17dc]
push eax
push 0x100a738
push 0x800
lea ecx, [ebp - 0x1628]
push ecx
call fcn.01011d00
add esp, 0x4c
test eax, eax
jge 0x103fcb3
jmp 0x103fcf8
lea edx, [ebp - 0x2a5c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1788]
push edx
push 1
push 1
lea eax, [ebp - 0x1628]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0101a970
add esp, 0x20
test eax, eax
je 0x103fcf6
xor edx, edx
cmp dword [ebp - 0x1788], 0
sete dl
mov dword [ebp - 0x1784], edx
jmp 0x103fd39
push 0x200
lea eax, [ebp - 0x620]
push eax
push 0x13e
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10015b4
lea edx, [ebp - 0x620]
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 0x103ff41
jmp 0x103ff21
movzx edx, word [ebp - 0x1680]
test edx, edx
je 0x103fd72
lea eax, [ebp - 0x1680]
push eax
lea ecx, [ebp - 0x1680]
push ecx
push 0x100a658
push 0x800
lea edx, [ebp - 0x1628]
push edx
call fcn.01011d00
add esp, 0x14
jmp 0x103fd92
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
push 0x1009af0
push 0x800
lea ecx, [ebp - 0x1628]
push ecx
call fcn.01011d00
add esp, 0x10
lea edx, [ebp - 0x2a5c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1788]
push edx
push 1
push 1
lea eax, [ebp - 0x1628]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0101a970
add esp, 0x20
xor edx, edx
cmp dword [ebp - 0x1788], 0
sete dl
mov dword [ebp - 0x1784], edx
jmp 0x103ff21
lea eax, [ebp - 0x1680]
push eax
push 0x100a600
push 0x800
lea ecx, [ebp - 0x1628]
push ecx
call fcn.01011d00
add esp, 0x10
lea edx, [ebp - 0x2a5c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1788]
push edx
push 1
push 1
lea eax, [ebp - 0x1628]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0101a970
add esp, 0x20
cmp dword [ebp - 0x1788], 0
je 0x103fe44
cmp dword [ebp - 0x1788], 0x5606
je 0x103fe44
mov dword [ebp - 0x3288], 0
jmp 0x103fe4e
mov dword [ebp - 0x3288], 1
mov edx, dword [ebp - 0x3288]
mov dword [ebp - 0x1784], edx
jmp 0x103ff21
lea eax, [ebp - 0x1680]
push eax
push 0x100a5a8
push 0x800
lea ecx, [ebp - 0x1628]
push ecx
call fcn.01011d00
add esp, 0x10
lea edx, [ebp - 0x2a5c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1788]
push edx
push 1
push 1
lea eax, [ebp - 0x1628]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0101a970
add esp, 0x20
cmp dword [ebp - 0x1788], 0
je 0x103fecd
cmp dword [ebp - 0x1788], 0x5606
je 0x103fecd
mov dword [ebp - 0x328c], 0
jmp 0x103fed7
mov dword [ebp - 0x328c], 1
mov edx, dword [ebp - 0x328c]
mov dword [ebp - 0x1784], edx
jmp 0x103ff21
push 0x200
lea eax, [ebp - 0x620]
push eax
push 0x124
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x620]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.01011d00
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x103ff3b
cmp dword [ebp - 0x1788], 0
je 0x103ff3b
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1788]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1784]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret