Function at 0x4a6b08
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4a6b11
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004046b4
xor eax, eax
push ebp
push 0x4a6f56
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, esi
call fcn.004b0730
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x41a00c]
call fcn.004033a4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4a6f0f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4a6b7d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, 0x4a6f6c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x4a6ba7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, 0x4a6fb0
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00489c18
mov edx, 0x4a701c
call fcn.00488b04
mov edx, dword [ebp - 4]
call fcn.0048827c
cmp byte [ebp - 5], 0
jne 0x4a6d49
mov eax, dword [ebp - 0xc]
call fcn.004894cc
jmp 0x4a6d31
test bl, bl
je 0x4a6c52
mov eax, dword [esi + 0x38]
mov edx, 0x4a7034
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, 0x4a704c
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [esi + 0x41], 0
je 0x4a6c17
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x28], 0x5e
mov byte [ebp - 0x24], 2
mov byte [ebp - 0x20], 0x3b
mov byte [ebp - 0x1c], 2
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x4a7068
call fcn.00409858
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a7080
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, 0x4a7080
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x4a708c
call fcn.00409858
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ebx, ebx
mov edx, 0x4a70b0
mov eax, dword [ebp - 0xc]
call fcn.00489734
lea edx, [ebp - 0x30]
call fcn.004882cc
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x10]
call fcn.00408838
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x30]
call fcn.00493c64
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
call fcn.00490cd0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x4a70cc
call fcn.00409858
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004afa24
cmp byte [esi + 0x41], 0
je 0x4a6cf4
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 0x28], 0x5e
mov byte [ebp - 0x24], 2
mov eax, 0x4a7080
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x4a70ec
call fcn.00409858
mov edx, dword [ebp - 0x44]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a6d29
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 0x28], 0x3b
mov byte [ebp - 0x24], 2
mov eax, 0x4a7080
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov eax, 0x4a70ec
mov ecx, 1
call fcn.00409858
mov edx, dword [ebp - 0x48]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00489894
mov eax, dword [ebp - 0xc]
call fcn.00489720
test al, al
je 0x4a6bbe
mov eax, dword [ebp - 0xc]
call fcn.00489464
mov eax, dword [ebp - 0xc]
call fcn.004894cc
jmp 0x4a6e8c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x4a70b0
mov eax, dword [ebp - 0xc]
call fcn.00489734
lea edx, [ebp - 0x4c]
call fcn.004882cc
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x10]
call fcn.00408838
lea eax, [ebp - 0x50]
push eax
mov eax, 0x4a7080
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [esi + 0x30]
call fcn.00493c64
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x10]
call fcn.00490cd0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x4a710c
call fcn.00409858
mov edx, dword [ebp - 0x50]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004afa24
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x4a712c
mov eax, dword [ebp - 0xc]
call fcn.00489734
call fcn.00486dec
test al, al
jne 0x4a6e51
mov edx, 0x4a712c
mov eax, dword [ebp - 0xc]
call fcn.00489734
lea edx, [ebp - 0x58]
call fcn.004882cc
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x4a6e27
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a6e51
lea ecx, [ebp - 0x60]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00408838
cmp dword [ebp - 0x5c], 0
je 0x4a6e1d
cmp byte [ebp - 5], 0
jne 0x4a6e79
cmp byte [esi + 0x41], 0
je 0x4a6e6c
mov edx, 0x4a714c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a6e79
mov edx, 0x4a715c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00489894
mov eax, dword [ebp - 0xc]
call fcn.00489720
test al, al
je 0x4a6d56
test bl, bl
jne 0x4a6ef1
cmp byte [esi + 0x41], 0
je 0x4a6ed7
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 0x28], 0x3b
mov byte [ebp - 0x24], 2
mov byte [ebp - 0x20], 0x5e
mov byte [ebp - 0x1c], 2
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x4a7068
call fcn.00409858
mov edx, dword [ebp - 0x64]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, 0x4a7034
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, 0x4a716c
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6f16
mov eax, dword [ebp - 0xc]
call fcn.004033d4
mov eax, dword [ebp - 0x14]
call fcn.004033d4
ret