Function at 0x5fed70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5fed78
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5ff11b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6aa0fc]
cmp byte [eax + 0x65e], 0
je 0x5fedb9
lea eax, [ebp - 4]
mov edx, 0x5ff134
call fcn.00404b84
mov byte [ebx + 0x65e], 0
jmp 0x5fedc1
lea eax, [ebp - 4]
call fcn.00404aec
test esi, esi
je 0x5fedce
cmp esi, 1
jne 0x5fee5f
mov edx, dword [ebx + 0x45c]
mov eax, dword [0x6aa0fc]
call fcn.006027d8
mov eax, dword [ebx + 0x45c]
call fcn.004c2d20
push 0x5ff154
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x5ff19c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404e6c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x45c]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x45c]
call fcn.004c2d14
mov eax, dword [ebx + 0x45c]
call fcn.004c4fdc
test al, al
je 0x5fee52
mov eax, dword [ebx + 0x438]
mov byte [eax + 0x2c4], 1
jmp 0x5fee5f
mov eax, dword [ebx + 0x438]
mov byte [eax + 0x2c4], 0
test esi, esi
je 0x5fee6c
cmp esi, 2
jne 0x5fef55
mov byte [ebx + 0x65d], 0
mov edx, dword [ebx + 0x3b0]
mov eax, ebx
call fcn.006027d8
mov eax, dword [ebx + 0x3b0]
call fcn.004c2d20
push 0x5ff1b8
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
push dword [ebp - 0x14]
push dword [ebp - 4]
push 0x5ff19c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404e6c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x3b0]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x3b0]
call fcn.004c2d14
mov eax, dword [ebx + 0x3b0]
call fcn.004c4fdc
test al, al
je 0x5feef4
mov eax, dword [ebx + 0x358]
mov byte [eax + 0x2c4], 1
jmp 0x5fef55
mov eax, dword [ebx + 0x358]
mov byte [eax + 0x2c4], 0
mov eax, dword [ebx + 0x410]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x5fef55
jmp 0x5fef46
mov edx, 0x5ff200
mov eax, edi
call fcn.004c3d24
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
cmp dword [ebp - 0x18], 0
jne 0x5fef3b
mov eax, 0x5ff21c
call fcn.0043dba0
jmp 0x5fef55
mov eax, dword [ebx + 0x3b0]
call fcn.004c5464
mov edi, dword [ebx + 0x3b0]
cmp byte [edi + 0xa1], 0
je 0x5fef15
test esi, esi
je 0x5fef62
cmp esi, 3
jne 0x5feff0
mov edx, dword [ebx + 0x464]
mov eax, ebx
call fcn.006027d8
mov eax, dword [ebx + 0x464]
call fcn.004c2d20
push 0x5ff238
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
push dword [ebp - 0x20]
push dword [ebp - 4]
push 0x5ff19c
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404e6c
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x464]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x464]
call fcn.004c2d14
mov eax, dword [ebx + 0x464]
call fcn.004c4fdc
test al, al
je 0x5fefe3
mov eax, dword [ebx + 0x454]
mov byte [eax + 0x2c4], 1
jmp 0x5feff0
mov eax, dword [ebx + 0x454]
mov byte [eax + 0x2c4], 0
test esi, esi
je 0x5feffd
cmp esi, 4
jne 0x5ff0e6
mov byte [ebx + 0x65d], 0
mov edx, dword [ebx + 0x3b4]
mov eax, ebx
call fcn.006027d8
mov eax, dword [ebx + 0x3b4]
call fcn.004c2d20
push 0x5ff280
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0x5ff19c
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404e6c
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebx + 0x3b4]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x3b4]
call fcn.004c2d14
mov eax, dword [ebx + 0x3b4]
call fcn.004c4fdc
test al, al
je 0x5ff085
mov eax, dword [ebx + 0x360]
mov byte [eax + 0x2c4], 1
jmp 0x5ff0e6
mov eax, dword [ebx + 0x360]
mov byte [eax + 0x2c4], 0
mov eax, dword [ebx + 0x410]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x5ff0e6
jmp 0x5ff0d7
mov edx, 0x5ff200
mov eax, esi
call fcn.004c3d24
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
cmp dword [ebp - 0x2c], 0
jne 0x5ff0cc
mov eax, 0x5ff21c
call fcn.0043dba0
jmp 0x5ff0e6
mov eax, dword [ebx + 0x3b4]
call fcn.004c5464
mov esi, dword [ebx + 0x3b4]
cmp byte [esi + 0xa1], 0
je 0x5ff0a6
mov eax, dword [ebx + 0x410]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, eax
mov eax, dword [0x6aa0fc]
call fcn.005ff73c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ff122
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00404b10
ret