Function at 0x4bb4a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4bb4a8
push ecx
push ebx
push esi
push edi
mov esi, dword [0x4d8d30]
xor eax, eax
push ebp
push 0x4bbd9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d8ab8]
cmp byte [eax], 0
jne 0x4bb4f3
mov eax, dword [esi]
mov eax, dword [eax + 0x3c8]
cmp byte [eax + 0x57], 0
je 0x4bb4f3
mov eax, dword [esi]
mov eax, dword [eax + 0x3cc]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
jne 0x4bb4f7
xor ebx, ebx
jmp 0x4bb4f9
mov bl, 1
mov eax, dword [0x4d8b08]
cmp byte [eax], 0
jne 0x4bb525
mov eax, dword [esi]
mov eax, dword [eax + 0x3c0]
cmp byte [eax + 0x57], 0
je 0x4bb525
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
jne 0x4bb529
xor eax, eax
jmp 0x4bb52b
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [0x4d9078]
cmp byte [eax], 0
jne 0x4bb556
mov eax, dword [0x4d9088]
cmp byte [eax], 0
je 0x4bb556
mov eax, dword [esi]
mov eax, dword [eax + 0x504]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
jne 0x4bb55a
xor eax, eax
jmp 0x4bb55c
mov al, 1
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0x15]
or al, bl
jne 0x4bb571
cmp byte [ebp - 0x16], 0
je 0x4bbba8
mov eax, 0x4bbdb4
call fcn.004c28a8
lea eax, [ebp - 0x2c]
call fcn.004baf70
mov edx, dword [ebp - 0x2c]
mov eax, 0x4e0604
call fcn.00405a64
mov eax, dword [0x4e0604]
xor edx, edx
call fcn.00405d44
jbe 0x4bbba8
mov eax, dword [0x4d8f18]
cmp byte [eax], 0
je 0x4bb68e
push 0x80000002
lea eax, [ebp - 0x34]
mov ecx, dword [0x4d8884]
mov edx, 0x4bbdd4
call fcn.00405c8c
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00405434
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov eax, 0x4bbe48
call fcn.004ab2b0
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
and eax, 0xff000000
xor edx, edx
shld edx, eax, 8
shl eax, 8
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
and eax, 0xff0000
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
and eax, 0xffff
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x14]
mov edx, 0x4bbe54
mov eax, dword [0x4e0604]
call fcn.004b485c
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, 0x4bbedc
call fcn.00405c8c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00405434
mov eax, dword [ebp - 0x38]
call fcn.004c4200
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x24]
jne 0x4bb688
cmp eax, dword [ebp - 0x28]
jbe 0x4bb68e
jmp 0x4bbd2c
jg 0x4bbd2c
mov eax, dword [esi]
mov edx, 0xa
call fcn.0049c404
mov edx, dword [esi]
mov edi, dword [edx + 0x36c]
mov edx, dword [edi + 0x40]
sub edx, eax
push edx
mov eax, dword [esi]
call fcn.0044dd7c
mov ecx, eax
sub ecx, 0xf
movzx eax, byte [edi + 0x57]
pop edx
call fcn.00425d98
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x384]
sub edx, dword [eax + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x384]
call fcn.0044daf8
mov eax, dword [esi]
mov edi, dword [eax + 0x384]
mov eax, edi
call fcn.00482e3c
mov edx, eax
sar edx, 1
jns 0x4bb6f0
adc edx, 0
mov eax, edi
call fcn.00483024
mov eax, dword [esi]
mov eax, dword [eax + 0x384]
mov edx, dword [eax + 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x4b0]
call fcn.0044daf8
lea ecx, [ebp - 0x40]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bbee8
call fcn.004731f0
mov edx, dword [ebp - 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x4b0]
call fcn.00493dc8
push 0x4bbf14
mov eax, dword [0x4d8e34]
push dword [eax]
push 0x4bbf34
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405cfc
mov eax, dword [0x4d8f18]
cmp byte [eax], 0
je 0x4bb768
lea eax, [ebp - 4]
mov edx, 0x4bbf3c
call fcn.00405c2c
call fcn.004c3954
test al, al
jne 0x4bb7bc
call fcn.004c3960
test al, al
jne 0x4bb7bc
push dword [ebp - 4]
push 0x4bbf68
mov eax, dword [0x4d8e34]
push dword [eax]
push 0x4bbfdc
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405cfc
push dword [ebp - 4]
push 0x4bbff4
mov eax, dword [0x4d8e34]
push dword [eax]
push 0x4bc024
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405cfc
lea eax, [ebp - 8]
call fcn.00405a28
lea eax, [ebp - 0xc]
call fcn.00405a28
lea eax, [ebp - 0x10]
call fcn.00405a28
mov eax, dword [0x4d8f18]
cmp byte [eax], 0
je 0x4bb9cd
mov eax, dword [0x4d90fc]
movzx eax, byte [eax]
dec eax
sub al, 2
setb al
or al, bl
je 0x4bb83f
mov eax, dword [0x4d8c38]
cmp byte [eax], 0
je 0x4bb83f
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405d44
jbe 0x4bb828
push dword [ebp - 0xc]
push 0x4bc040
mov eax, dword [0x4d8e4c]
push dword [eax]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405cfc
jmp 0x4bb882
mov ecx, dword [0x4d8e4c]
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov edx, 0x4bc048
call fcn.00405c8c
jmp 0x4bb882
test bl, bl
je 0x4bb882
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405d44
jbe 0x4bb86d
push dword [ebp - 8]
push 0x4bc040
mov eax, dword [0x4d8e4c]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cfc
jmp 0x4bb882
mov ecx, dword [0x4d8e4c]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov edx, 0x4bc064
call fcn.00405c8c
mov eax, dword [0x4d90fc]
movzx eax, byte [eax]
dec eax
sub al, 2
setb al
or al, byte [ebp - 0x15]
je 0x4bb8e0
mov eax, dword [0x4d8c94]
cmp byte [eax], 0
je 0x4bb8e0
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405d44
jbe 0x4bb8c9
push dword [ebp - 0xc]
push 0x4bc040
mov eax, dword [0x4d8eac]
push dword [eax]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405cfc
jmp 0x4bb925
mov ecx, dword [0x4d8eac]
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov edx, 0x4bc048
call fcn.00405c8c
jmp 0x4bb925
cmp byte [ebp - 0x15], 0
je 0x4bb925
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405d44
jbe 0x4bb910
push dword [ebp - 8]
push 0x4bc040
mov eax, dword [0x4d8eac]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cfc
jmp 0x4bb925
mov ecx, dword [0x4d8eac]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov edx, 0x4bc064
call fcn.00405c8c
cmp byte [ebp - 0x16], 0
je 0x4bb97c
mov eax, dword [0x4d8f44]
cmp byte [eax], 0
je 0x4bb97c
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405d44
jbe 0x4bb962
push dword [ebp - 0xc]
push 0x4bc040
mov eax, dword [0x4d9118]
push dword [eax]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405cfc
jmp 0x4bba9a
mov ecx, dword [0x4d9118]
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov edx, 0x4bc048
call fcn.00405c8c
jmp 0x4bba9a
cmp byte [ebp - 0x16], 0
je 0x4bba9a
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405d44
jbe 0x4bb9b3
push dword [ebp - 8]
push 0x4bc040
mov eax, dword [0x4d9118]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cfc
jmp 0x4bba9a
mov ecx, dword [0x4d9118]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov edx, 0x4bc064
call fcn.00405c8c
jmp 0x4bba9a
test bl, bl
je 0x4bba10
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405d44
jbe 0x4bb9fb
push dword [ebp - 8]
push 0x4bc040
mov eax, dword [0x4d8e4c]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cfc
jmp 0x4bba10
mov ecx, dword [0x4d8e4c]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov edx, 0x4bc064
call fcn.00405c8c
cmp byte [ebp - 0x15], 0
je 0x4bba55
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405d44
jbe 0x4bba40
push dword [ebp - 8]
push 0x4bc040
mov eax, dword [0x4d8eac]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cfc
jmp 0x4bba55
mov ecx, dword [0x4d8eac]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov edx, 0x4bc064
call fcn.00405c8c
cmp byte [ebp - 0x16], 0
je 0x4bba9a
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405d44
jbe 0x4bba85
push dword [ebp - 8]
push 0x4bc040
mov eax, dword [0x4d9118]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cfc
jmp 0x4bba9a
mov ecx, dword [0x4d9118]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov edx, 0x4bc064
call fcn.00405c8c
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405cfc
lea eax, [ebp - 4]
mov edx, 0x4bc080
call fcn.00405c2c
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00409fa0
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 4]
call fcn.00405a8c
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 4]
mov edx, 0x4bc120
call fcn.00405c8c
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
call fcn.00405434
mov eax, dword [ebp - 0x48]
call fcn.004c28a8
mov eax, dword [ebp - 4]
call fcn.00405c10
push eax
mov eax, dword [0x4e0604]
call fcn.00405c10
push eax
mov eax, dword [0x4d8de4]
mov eax, dword [eax]
call eax
mov ebx, eax
mov eax, dword [esi]
mov edi, dword [eax + 0x384]
mov eax, edi
call fcn.00482e3c
mov edx, eax
mov eax, edi
call fcn.00483024
test ebx, ebx
je 0x4bbba8
cmp ebx, 0xbc2
je 0x4bbba8
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0040a338
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x4bc15c
call fcn.004054c4
mov eax, dword [ebp - 0x50]
call fcn.004c28a8
cmp ebx, 0x642
je 0x4bbba8
push 1
push 1
lea ecx, [ebp - 0x58]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bc18c
call fcn.004731f0
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
mov eax, dword [0x4d8b54]
mov eax, dword [eax]
mov edx, 0x4bc1bc
call fcn.004731f0
mov eax, dword [ebp - 0x5c]
mov ecx, 0x7d2
pop edx
call fcn.004c0100
mov eax, dword [esi]
mov eax, dword [eax + 0x3c8]
cmp byte [eax + 0x57], 0
je 0x4bbc5e
push 0x80000001
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x3cc]
mov edx, dword [eax]
call dword [edx + 0xd8]
xor ecx, ecx
mov edx, 1
call fcn.00425d98
mov edx, eax
mov ecx, 0x4bc1f0
mov eax, 0x4bc214
call fcn.004ab3c8
mov ecx, 0x80000001
mov edx, 0x4bc228
mov eax, 0x4bc250
call fcn.004ab57c
test al, al
je 0x4bbc1a
mov ecx, 0x80000001
mov edx, 0x4bc228
mov eax, 0x4bc250
call fcn.004ab4f8
mov eax, dword [esi]
mov eax, dword [eax + 0x3cc]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x4bbc5e
mov ecx, 0x80000001
mov edx, 0x4bc26c
mov eax, 0x4bc290
call fcn.004ab57c
test al, al
je 0x4bbc5e
push 0x80000001
push 0
mov ecx, 0x4bc26c
xor edx, edx
mov eax, 0x4bc2c0
call fcn.004ab3c8
mov eax, dword [esi]
mov eax, dword [eax + 0x3c0]
cmp byte [eax + 0x57], 0
je 0x4bbd2c
push 0x80000001
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
mov edx, dword [eax]
call dword [edx + 0xd8]
xor ecx, ecx
mov edx, 1
call fcn.00425d98
mov edx, eax
mov ecx, 0x4bc1f0
mov eax, 0x4bc2dc
call fcn.004ab3c8
mov ecx, 0x80000001
mov edx, 0x4bc228
mov eax, 0x4bc2ec
call fcn.004ab57c
test al, al
je 0x4bbcd0
mov ecx, 0x80000001
mov edx, 0x4bc228
mov eax, 0x4bc2ec
call fcn.004ab4f8
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x4bbd2c
mov ecx, 0x80000001
mov edx, 0x4bc308
mov eax, 0x4bc290
call fcn.004ab57c
test al, al
je 0x4bbd2c
push 0x80000001
push 0
mov ecx, 0x4bc308
xor edx, edx
mov eax, 0x4bc2c0
call fcn.004ab3c8
push 0x80000002
push 0
mov ecx, 0x4bc308
xor edx, edx
mov eax, 0x4bc2c0
call fcn.004ab3c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbda5
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00405a40
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004051d0
lea eax, [ebp - 0x4c]
call fcn.00405a28
lea eax, [ebp - 0x48]
call fcn.004051ac
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405a40
lea eax, [ebp - 0x38]
call fcn.004051ac
lea eax, [ebp - 0x34]
call fcn.00405a28
lea eax, [ebp - 0x30]
call fcn.004051ac
lea eax, [ebp - 0x2c]
call fcn.00405a28
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405a40
ret