Function at 0x5b3a70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7479d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x454
push ebx
push esi
mov esi, dword [0x7fd5ec]
mov ebx, ecx
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
mov edi, dword [esi]
mov dword [ebp - 0x10], esp
push 3
call dword [eax + 4]
push eax
mov ecx, esi
call dword [edi + 4]
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
je 0x5b3b83
push 0x3c
call fcn.006b43f0
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x5b3adc
mov ecx, eax
call fcn.006b4460
jmp 0x5b3ade
xor eax, eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x3f0], eax
je 0x5b3b3e
push esi
mov ecx, eax
call fcn.006b4680
test al, al
jne 0x5b3b3e
mov ecx, dword [ebx + 0x3f0]
test ecx, ecx
je 0x5b3b3e
mov edx, dword [ecx]
push 1
mov dword [ebp - 4], 1
call dword [edx]
jmp 0x5b3b2d
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x3f0], 0
test esi, esi
je 0x5b3b83
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 3
call dword [eax + 4]
jmp 0x5b3b7c
mov dword [ebp - 4], 0xffffffff
mov esi, dword [0x7fd5ec]
mov edx, dword [ebx]
push 4
mov ecx, ebx
mov edi, dword [esi]
call dword [edx + 4]
push eax
mov ecx, esi
call dword [edi + 4]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x5b3ce6
mov dword [ebp - 0x14], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
cmp dword [ebp - 0x14], eax
jae 0x5b3ca1
push 0x3c
call fcn.006b43f0
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x5b3bdf
mov ecx, eax
call fcn.006b4460
jmp 0x5b3be1
xor eax, eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], eax
je 0x5b3c92
push edi
mov ecx, eax
call fcn.006b4680
test al, al
je 0x5b3c55
mov eax, dword [ebx + 0x3e8]
mov ecx, dword [ebx + 0x3ec]
lea esi, [ebx + 0x3e4]
cmp eax, ecx
je 0x5b3c3a
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.005b8290
mov eax, dword [esi + 4]
add esp, 8
add eax, 4
mov ecx, edi
mov dword [esi + 4], eax
mov edx, dword [edi]
call dword [edx + 0x64]
inc dword [ebp - 0x14]
jmp 0x5b3bae
lea edx, [ebp - 0x20]
mov ecx, esi
push edx
push eax
call fcn.005b7a40
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x64]
inc dword [ebp - 0x14]
jmp 0x5b3bae
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5b3c92
mov eax, dword [ecx]
push 1
mov dword [ebp - 4], 6
call dword [eax]
jmp 0x5b3c84
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x64]
inc dword [ebp - 0x14]
jmp 0x5b3bae
test edi, edi
je 0x5b3ce6
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 8
call dword [eax + 4]
jmp 0x5b3cdf
mov dword [ebp - 4], 0xffffffff
mov esi, dword [0x7fd61c]
test esi, esi
jne 0x5b3d11
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push eax
mov ecx, esi
call fcn.00533970
mov edx, dword [ebx]
mov ecx, ebx
mov edi, eax
call dword [edx + 4]
lea esi, [ebx + 8]
mov dword [ebx + 0x388], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x34]
cmp eax, 0x32
jb 0x5b3d94
test edi, edi
jne 0x5b3d94
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov ecx, dword [0x7fd61c]
mov dword [ebp - 0x2c], eax
test ecx, ecx
jne 0x5b3d8b
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00533800
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push eax
push 0x7bc7c4
lea ecx, [ebp - 0x460]
push str.SELECT__FROM__s_WHERE_tutor_id_u_LIMIT_15
push ecx
call fcn.0070258b
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x460]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x60], edi
xor esi, esi
mov dword [ebp - 4], 0xa
cmp edi, esi
je 0x5b3ea0
mov dword [ebp - 0x14], esi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x60]
cmp dword [ebp - 0x14], eax
jae 0x5b3e9e
mov dword [ebp - 0x54], 0
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0x44]
mov dword [ebp - 0x50], eax
mov edx, dword [edi]
push 5
mov ecx, edi
call dword [edx + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi]
push 4
mov ecx, edi
call dword [eax + 0x44]
mov dword [ebp - 0x38], eax
mov edx, dword [edi]
push 6
mov ecx, edi
call dword [edx + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
push 0x10
push 3
mov ecx, edi
call dword [eax + 0x48]
lea ecx, [ebp - 0x4c]
push eax
push ecx
call fcn.0040cc10
mov eax, dword [ebx + 0x368]
mov ecx, dword [ebx + 0x36c]
lea esi, [ebx + 0x364]
add esp, 0xc
cmp eax, ecx
je 0x5b3e7f
lea edx, [ebp - 0x54]
push edx
push eax
call fcn.005b8270
mov eax, dword [esi + 4]
add esp, 8
add eax, 0x24
mov ecx, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
inc eax
mov dword [ebp - 0x14], eax
call dword [edx + 0x64]
jmp 0x5b3de1
lea ecx, [ebp - 0x54]
push ecx
push eax
mov ecx, esi
call fcn.005b70f0
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
inc eax
mov ecx, edi
mov dword [ebp - 0x14], eax
call dword [edx + 0x64]
jmp 0x5b3de1
xor esi, esi
mov eax, dword [ebx + 0x368]
mov ecx, dword [ebx + 0x364]
sub eax, ecx
mov dword [ebp - 0x28], esi
mov ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x5b40f9
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx + 0x364]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x14], eax
push edx
push 0x7bc780
lea eax, [ebp - 0x460]
push str.SELECT__FROM__s_WHERE_tutor_id_u_LIMIT_15
push eax
call fcn.0070258b
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x460]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
mov byte [ebp - 4], 0xb
je 0x5b405c
push 0xc
call fcn.00728cf3
mov edi, eax
add esp, 4
test edi, edi
je 0x5b40a5
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x370]
push eax
call fcn.005b76e0
mov ecx, dword [ebx + 0x370]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
je 0x5b3f66
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [eax + 0x10]
cmp edx, ecx
jae 0x5b3f9e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0
call fcn.005b70d0
push eax
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
push edx
call fcn.005b70c0
lea eax, [ebp - 0x58]
lea ecx, [ebx + 0x370]
push eax
call fcn.005b7090
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [eax + 0x14], edi
mov dword [ebp - 0x14], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
cmp dword [ebp - 0x14], eax
jae 0x5b4059
mov dword [ebp - 0x54], 1
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 0x44]
mov dword [ebp - 0x50], eax
mov edx, dword [esi]
push 6
mov ecx, esi
call dword [edx + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 0x44]
mov dword [ebp - 0x38], eax
mov edx, dword [esi]
push 7
mov ecx, esi
call dword [edx + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push 0x10
push 4
mov ecx, esi
call dword [eax + 0x48]
lea ecx, [ebp - 0x4c]
push eax
push ecx
call fcn.0040cc10
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
add esp, 0xc
cmp eax, ecx
je 0x5b403a
lea edx, [ebp - 0x54]
push edx
push eax
call fcn.005b8270
mov eax, dword [edi + 4]
add esp, 8
add eax, 0x24
mov ecx, esi
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
inc eax
mov dword [ebp - 0x14], eax
call dword [edx + 0x64]
jmp 0x5b3fa8
lea ecx, [ebp - 0x54]
push ecx
push eax
mov ecx, edi
call fcn.005b70f0
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
inc eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call dword [edx + 0x64]
jmp 0x5b3fa8
mov edi, dword [ebp - 0x20]
test esi, esi
mov byte [ebp - 4], 0xa
je 0x5b406b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x364]
add eax, 0x24
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x368]
sub eax, edx
inc esi
mov ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
mov dword [ebp - 0x28], esi
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x5b40f9
jmp 0x5b3ecd
push 0x1b7
push 0x7bc5ac
push str.pSet
push str.CHECKF
push 0x793720
call fcn.00401080
mov edx, dword [esi]
add esp, 0x14
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [edx + 4]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x5b40e4
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x3f0]
test eax, eax
je 0x5b44cd
mov esi, dword [0x7fd61c]
mov ecx, dword [eax + 0x10]
test esi, esi
mov dword [ebp - 0x24], ecx
jne 0x5b4138
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
push edx
mov ecx, ebx
call dword [eax + 4]
push eax
mov ecx, esi
call fcn.00533970
mov ecx, dword [ebx + 0x3f0]
test eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [ebx + 0x38c], ecx
je 0x5b416d
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 8]
mov dword [ebx + 0x308], eax
mov eax, dword [ebx + 0x3f0]
lea ecx, [ebp - 0x460]
mov eax, dword [eax + 0x10]
push eax
push str.cq_tutor
push str.SELECT_tutor_id_FROM__s_WHERE_user_id_u__betrayal_flag0_LIMIT_1
push ecx
call fcn.0070258b
mov esi, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x460]
mov ecx, esi
mov edx, dword [esi]
push 1
push eax
call dword [edx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x58], eax
test eax, eax
mov byte [ebp - 4], 0xc
je 0x5b41bf
mov ecx, eax
push 0
mov edx, dword [ecx]
call dword [edx + 0x44]
mov dword [ebx + 0x360], eax
mov eax, dword [ebx + 0x360]
test eax, eax
je 0x5b4222
mov eax, dword [0x7fd61c]
test eax, eax
jne 0x5b41fc
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp + 8], 0
jmp 0x5b41ff
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x360]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [ebp + 8]
push eax
call fcn.00533970
mov eax, dword [ebx + 0x360]
mov dword [ebx + 0x390], eax
mov ecx, dword [ebx + 0x3f0]
mov eax, dword [ebx]
mov edx, dword [ecx + 0x10]
mov ecx, ebx
mov dword [ebp + 8], edx
call dword [eax + 4]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 0x7bc7c4
lea edx, [ebp - 0x460]
push str.SELECT__FROM__s_WHERE_tutor_id_u__student_id_u_LIMIT_1
push edx
call fcn.0070258b
mov eax, dword [esi]
add esp, 0x14
lea ecx, [ebp - 0x460]
push 1
push ecx
mov ecx, esi
call dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x5c], eax
test eax, eax
mov byte [ebp - 4], 0xd
je 0x5b4317
mov eax, dword [ebx + 0x358]
test eax, eax
je 0x5b42e2
push 0x1e6
push 0x7bc5ac
push str.m_pTutorContriData__NULL
push str.CHECKF
push 0x793720
call fcn.00401080
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 0xc
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x5b42bb
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x5b42cd
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc
call fcn.00728cf3
add esp, 4
test eax, eax
je 0x5b4300
xor ecx, ecx
mov dword [eax], 0x757bf4
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x5b4302
xor eax, eax
test eax, eax
mov dword [ebx + 0x358], eax
je 0x5b4317
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x24]
mov edx, dword [ebx + 0x3f0]
mov ecx, ebx
mov eax, dword [edx + 0x10]
mov edx, dword [ebx]
mov dword [ebp + 8], eax
call dword [edx + 4]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7bc780
lea ecx, [ebp - 0x460]
push str.SELECT__FROM__s_WHERE_tutor_id_u__student_id_u_LIMIT_1
push ecx
call fcn.0070258b
mov edx, dword [esi]
add esp, 0x14
lea eax, [ebp - 0x460]
mov ecx, esi
push 1
push eax
call dword [edx]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 0xe
je 0x5b439a
push 0xc
call fcn.00728cf3
add esp, 4
test eax, eax
je 0x5b4383
xor ecx, ecx
mov dword [eax], 0x757bb0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x5b4385
xor eax, eax
test eax, eax
mov dword [ebx + 0x35c], eax
je 0x5b439a
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x24]
mov edx, dword [ebx + 0x3f0]
mov eax, dword [edx + 0x10]
push eax
push str.cq_tutor
lea eax, [ebp - 0x460]
push str.SELECT__FROM__s_WHERE_tutor_id_u_LIMIT_15
push eax
call fcn.0070258b
mov edx, dword [esi]
add esp, 0x10
lea eax, [ebp - 0x460]
mov ecx, esi
push 1
push eax
call dword [edx]
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
test esi, esi
mov byte [ebp - 4], 0xf
je 0x5b448e
mov dword [ebp + 8], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
cmp dword [ebp + 8], eax
jae 0x5b448e
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x44]
mov dword [ebp - 0x44], eax
mov edx, dword [esi]
push 0x10
push 2
mov ecx, esi
call dword [edx + 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040cc10
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
call dword [edx + 4]
cmp dword [ebp - 0x44], eax
je 0x5b447b
mov edx, dword [ebx + 0x380]
mov ecx, dword [ebx + 0x384]
lea eax, [ebx + 0x37c]
cmp edx, ecx
je 0x5b446f
test edx, edx
je 0x5b4453
mov ecx, 5
lea esi, [ebp - 0x44]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
add ecx, 0x14
mov dword [eax + 4], ecx
mov eax, dword [ebp + 8]
mov edx, dword [esi]
inc eax
mov ecx, esi
mov dword [ebp + 8], eax
call dword [edx + 0x64]
jmp 0x5b43e7
lea ecx, [ebp - 0x44]
push ecx
push edx
mov ecx, eax
call fcn.005b7720
mov eax, dword [ebp + 8]
mov edx, dword [esi]
inc eax
mov ecx, esi
mov dword [ebp + 8], eax
call dword [edx + 0x64]
jmp 0x5b43e7
test esi, esi
mov byte [ebp - 4], 0xe
je 0x5b449d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x5b44ad
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x5b44bd
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x5b44cd
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x5b44df
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4