Function at 0x50bfa0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x2c], 0
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
cmp byte [esi + 0x4f], 0
jne 0x50bfda
mov edx, dword [ebx]
test edx, edx
je 0x50bfc4
mov ecx, esi
call fcn.00458df5
mov edx, 0x40e33c
mov ecx, esi
call fcn.0044e20f
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x50c3a9
cmp dword [esi + 0xac], 1
jle 0x50bff7
mov edx, dword [ebx]
test edx, edx
je 0x50bff0
mov ecx, esi
call fcn.00458df5
mov edx, 0x40e364
jmp 0x50bfc9
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x50c03f
movzx eax, word [ecx + 8]
and eax, 0x1f
cmp byte [eax + 0x4130f4], 3
je 0x50c028
mov edx, dword [ebx]
test edx, edx
je 0x50c021
mov ecx, esi
call fcn.00458df5
mov edx, 0x40e310
jmp 0x50bfc9
mov dl, 1
call fcn.00449ee2
mov ecx, dword [esi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x50c044
mov edx, 0x4017cc
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x30], eax
or eax, 6
mov dword [esi + 0x18], eax
mov dword [ebp - 0x28], edi
mov edi, dword [esi + 0x64]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov cl, byte [esi + 0x58]
and eax, 0xefffaf7f
mov dword [ebp - 0x34], edi
or eax, 0x201
mov edi, dword [esi + 0x68]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x28]
mov dword [esi + 0x24], edi
mov edi, dword [ebp + 8]
shl edi, 4
mov byte [esi + 0x58], 0
mov byte [ebp - 2], cl
push edx
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 8], eax
push 0x40e324
push ebx
mov eax, dword [eax + 4]
push esi
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], ecx
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebp - 1], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
call fcn.004fbee8
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x50c34a
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
je 0x50c141
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x50c13d
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
pop ecx
pop ecx
test eax, eax
jne 0x50c11a
cmp dword [ebp - 0x14], eax
jl 0x50c13d
jg 0x50c11a
cmp dword [ebp - 0x18], eax
jbe 0x50c13d
mov edx, dword [ebx]
xor edi, edi
inc edi
test edx, edx
je 0x50c12a
mov ecx, esi
call fcn.00458df5
mov edx, 0x40e460
mov ecx, esi
call fcn.0044e20f
mov dword [ebx], eax
jmp 0x50c34a
or dword [esi + 0x18], 8
mov ecx, dword [ebp - 8]
call fcn.005078be
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov edx, dword [edx + ecx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.0045ee19
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.005080a8
mov edx, eax
mov ecx, edi
call fcn.005080a8
push 0x21
pop edx
mov ecx, edi
call fcn.0047c81f
push 0x401d78
mov edx, ebx
mov ecx, esi
call fcn.004fbdfe
mov edi, eax
pop ecx
test edi, edi
jne 0x50c34a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
neg edx
push eax
sbb edx, edx
and edx, 0xfffffffe
add edx, 2
call fcn.00455da0
mov edi, eax
pop ecx
test edi, edi
jne 0x50c34a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x50c1cb
and dword [esi + 0x5c], edi
mov edx, dword [ecx + 4]
mov edi, dword [ebp - 0x20]
mov ecx, edi
mov edx, dword [edx + 0x20]
push 0
push dword [ebp - 0x14]
call fcn.00480a93
pop ecx
pop ecx
test eax, eax
jne 0x50c347
cmp byte [ebp - 1], al
jne 0x50c204
mov edx, dword [esi + 0x5c]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.00480a93
pop ecx
pop ecx
test eax, eax
jne 0x50c347
cmp byte [esi + 0x51], 0
jne 0x50c347
mov al, byte [esi + 0x54]
test al, al
js 0x50c21a
movsx eax, al
jmp 0x50c222
mov ecx, dword [ebp - 8]
call fcn.0050787b
mov edx, eax
mov ecx, edi
call fcn.00507fed
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
push 0x40e480
push ebx
push esi
mov byte [esi + 0xa4], al
call fcn.004fbee8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c34a
push dword [ebp - 0xc]
push 0x40e390
push ebx
push esi
call fcn.004fbee8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c34a
push dword [ebp - 0xc]
mov byte [esi + 0xa4], al
push 0x40e3c8
push ebx
push esi
call fcn.004fbee8
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c34a
push dword [ebp - 0xc]
push 0x40e568
push ebx
push esi
call fcn.004fbee8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c34a
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
movzx edx, byte [edi + 0x40fa04]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
push eax
call fcn.00444f1e
movzx eax, byte [edi + 0x40fa05]
add eax, dword [ebp - 0x20]
movzx edx, byte [edi + 0x40fa04]
pop ecx
push eax
mov ecx, ebx
call fcn.00508209
mov edi, eax
pop ecx
test edi, edi
jne 0x50c34a
mov edi, dword [ebp - 0x1c]
add edi, 2
mov dword [ebp - 0x1c], edi
cmp edi, 0xa
jl 0x50c2b4
cmp dword [ebp + 0xc], eax
jne 0x50c30b
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.00507634
mov edi, eax
test edi, edi
jne 0x50c34a
mov ecx, ebx
call fcn.0044420c
mov edi, eax
test edi, edi
jne 0x50c34a
cmp dword [ebp + 0xc], eax
jne 0x50c34a
mov ecx, ebx
call fcn.0050787b
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.00507fed
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 8]
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.00480a93
pop ecx
pop ecx
mov edi, eax
jmp 0x50c34a
push 7
pop edi
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
mov ecx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x68], eax
mov al, byte [ebp - 2]
push 1
push edx
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.00480a93
mov ebx, dword [ebp - 0x2c]
mov byte [esi + 0x4f], 1
pop ecx
pop ecx
test ebx, ebx
je 0x50c3a0
mov ecx, dword [ebx + 4]
call fcn.0045f35d
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
mov ecx, esi
call fcn.0050bc6d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret