Function at 0x431315
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 0xc], 1
xor ecx, ecx
mov dword [ebp - 8], eax
push esi
push edi
mov edi, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0x49a1c0
mov dword [ebp - 0x14], ecx
movzx esi, byte [edi]
cmp esi, 0x98
je 0x431362
cmp esi, 0x9f
jne 0x431367
mov edi, dword [edi + 0xc]
jmp 0x43134f
cmp esi, 0x9a
jne 0x431373
movzx esi, byte [edi + 0x26]
cmp esi, 0x24
jne 0x4313c7
mov ecx, dword [edi + 8]
xor edx, edx
call fcn.004470fa
push dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
mov byte [ebp - 0xc], al
push esi
push dword [ebp - 0xc]
push dword [ebx + 8]
call fcn.00431315
mov ecx, dword [esi]
add esp, 0x10
mov edi, eax
test ecx, ecx
je 0x4313c0
mov dl, byte [ebp - 0xc]
push 1
call fcn.00430cd8
mov dl, byte [ebx + 0xc]
pop ecx
mov ecx, dword [esi]
push 1
call fcn.004365f7
pop ecx
mov eax, edi
jmp 0x43164b
cmp esi, 0x97
jne 0x4313ee
mov edx, dword [edi + 0xc]
mov cl, byte [edx]
cmp cl, 0x88
je 0x4313de
cmp cl, 0x86
jne 0x43141b
or dword [ebp - 0xc], 0xffffffff
mov edi, edx
mov dword [ebp - 0x10], 0x4a398c
movzx esi, byte [edi]
cmp esi, 0x63
je 0x431571
cmp esi, 0x86
je 0x431571
cmp esi, 0x88
je 0x431571
cmp esi, 0x97
jne 0x4314be
push dword [ebx + 0x14]
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 4]
push ecx
push dword [ebx + 0xc]
mov ecx, eax
push dword [ebx + 8]
call fcn.00431315
add esp, 0x10
test eax, eax
jne 0x431621
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x431621
call fcn.00430c3f
mov eax, dword [ebp - 4]
test byte [eax + 8], 8
je 0x431467
movsd xmm0, qword [eax]
xorps xmm0, xmmword [0x4a7a00]
movsd qword [eax], xmm0
jmp 0x4314aa
mov esi, dword [eax]
xor edx, edx
mov ecx, dword [eax + 4]
cmp esi, edx
jne 0x43149f
cmp ecx, 0x80000000
jne 0x43149f
movsd xmm0, qword [0x4a7998]
mov edx, 0x3e00
movsd qword [eax], xmm0
mov ecx, dword [ebp - 4]
mov ax, word [ecx + 8]
and ax, dx
or ax, 8
mov word [ecx + 8], ax
jmp 0x4314aa
neg esi
mov dword [eax], esi
adc ecx, edx
neg ecx
mov dword [eax + 4], ecx
push dword [ebx + 8]
mov dl, byte [ebx + 0xc]
mov ecx, dword [ebp - 4]
call fcn.004365f7
pop ecx
jmp 0x431621
cmp esi, 0x67
jne 0x4314e1
mov ecx, eax
call fcn.0043130d
mov dword [ebp - 4], eax
test eax, eax
je 0x43162e
mov ecx, eax
call fcn.00430c3f
jmp 0x431621
cmp esi, 0x87
jne 0x43153a
mov ecx, eax
call fcn.0043130d
mov dword [ebp - 4], eax
test eax, eax
je 0x43162e
mov esi, dword [edi + 8]
lea ecx, [esi + 2]
call fcn.0041c748
push 0x41982c
xor edx, edx
push edx
lea ecx, [eax - 1]
mov eax, ecx
cdq
sub eax, edx
lea edx, [esi + 2]
sar eax, 1
push eax
push ecx
push ecx
mov ecx, dword [ebp - 8]
call fcn.0041d55d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00431017
add esp, 0xc
jmp 0x431621
cmp esi, 0x91
jne 0x431621
mov ecx, eax
call fcn.0043130d
mov dword [ebp - 4], eax
push 4
pop ecx
mov word [eax + 8], cx
xor ecx, ecx
mov eax, dword [edi + 8]
cmp byte [eax + 4], cl
mov eax, dword [ebp - 4]
sete cl
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x431621
mov ecx, eax
call fcn.0043130d
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x43162e
test dword [edi + 4], 0x400
je 0x43159f
mov eax, dword [ebp - 0xc]
imul dword [edi + 8]
push edx
push eax
call fcn.00430e01
pop ecx
pop ecx
jmp 0x4315d2
push dword [edi + 8]
mov edi, dword [ebp - 8]
push dword [ebp - 0x10]
push str.Permutation
push edi
call fcn.0041bd57
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x431631
push 0x41982c
push 1
push ecx
mov ecx, dword [ebp - 4]
call fcn.00431676
add esp, 0xc
cmp esi, 0x88
je 0x4315e2
cmp esi, 0x86
jne 0x4315ea
cmp byte [ebx + 0xc], 0x41
mov dl, 0x43
je 0x4315ed
mov dl, byte [ebx + 0xc]
mov ecx, dword [ebp - 4]
push 1
call fcn.004365f7
pop ecx
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 8]
test al, 0xc
je 0x43160c
and eax, 0xfffd
mov word [ecx + 8], ax
mov eax, dword [ebx + 8]
cmp al, 1
je 0x431621
mov ecx, dword [ebp - 4]
movzx edx, al
call fcn.004306a8
mov dword [ebp - 0x14], eax
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edx], ecx
jmp 0x43164b
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.0041a984
mov edx, dword [ebp - 0x18]
call fcn.0041a50a
mov ecx, dword [ebp - 4]
call fcn.00431694
push 7
pop eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret