Function at 0x5b58d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3f0]
test eax, eax
je 0x5b6052
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x5b6052
lea ebx, [esi + 0x320]
test ebx, ebx
jne 0x5b592b
push 0x422
push 0x7bc5ac
push str.pInfo
push str.CHECK
push 0x793720
call fcn.00401080
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x7fd61c]
mov edi, dword [eax + 0x10]
test ecx, ecx
jne 0x5b595b
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
push edi
call fcn.00533d60
mov edi, eax
test edi, edi
je 0x5b6052
mov eax, dword [0x7fd594]
test eax, eax
jne 0x5b599e
push 0x1b7
push 0x797a90
push str.g_pStudentTypeSet
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp - 4], 0
jmp 0x5b59a1
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
push eax
push 0
call fcn.0054b4c0
test eax, eax
mov dword [ebp - 4], eax
jne 0x5b59d0
push 0x42a
push 0x7bc5ac
push str.pTypeInfo
jmp 0x5b5910
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
push 0x64
push ecx
push edx
call dword [sym.imp.kernel32.dll_MulDiv]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push 0x64
mov ecx, dword [eax + 0x14]
push ecx
push edx
call dword [sym.imp.kernel32.dll_MulDiv]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
fild dword [eax + 0x18]
fmul dword [ebp + 0x10]
call fcn.00702d1c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
fild dword [ebp - 4]
add edx, ecx
push 5
mov dword [ebx + 0x1c], edx
mov edx, dword [ebp - 8]
fadd dword [ebx + 0x24]
add eax, edx
mov ecx, edi
mov dword [ebx + 0x20], eax
fstp dword [ebx + 0x24]
mov eax, dword [edi]
call dword [eax + 8]
add eax, dword [ebp - 0x14]
cmp eax, 0xea60
jle 0x5b5a41
mov eax, 0xea60
mov edx, dword [edi]
push eax
push 5
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 4
mov ecx, edi
call dword [eax + 8]
add eax, dword [ebp - 8]
cmp eax, 0x2d0
jle 0x5b5a63
mov eax, 0x2d0
mov edx, dword [edi]
push eax
push 4
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 6
mov ecx, edi
call dword [eax + 8]
add eax, dword [ebp - 4]
cmp eax, 0x8ca0
jle 0x5b5a85
mov eax, 0x8ca0
mov edx, dword [edi]
push eax
push 6
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [esi + 0x358]
test eax, eax
jne 0x5b5bb3
call fcn.005b6c90
mov edi, eax
test edi, edi
mov dword [esi + 0x358], edi
je 0x5b5bb3
mov eax, dword [0x7fd5f0]
push 0x7b4240
push str.cq_tutor_contributions
lea ecx, [ebp - 0x114]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push ecx
mov dword [ebp - 0xc], eax
call fcn.0070258b
mov ecx, dword [0x801a2c]
add esp, 0x10
test ecx, ecx
jne 0x5b5b2f
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x114]
push 0
push eax
mov edx, dword [ecx]
call dword [edx]
push eax
mov ecx, 0x801a2c
call fcn.0047bd90
mov ecx, dword [0x801a2c]
test ecx, ecx
setne al
test al, al
jne 0x5b5b2f
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5b5bb3
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [edi + 4], eax
je 0x5b5b4b
mov edx, dword [eax]
push 0x7b4240
mov ecx, eax
call dword [edx + 0x30]
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
test edx, edx
setne al
test al, al
je 0x5b5bb3
mov edx, dword [esi + 0x3f0]
mov ecx, dword [esi + 0x358]
mov edx, dword [edx + 0x10]
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x10]
mov eax, dword [esi + 0x358]
mov edx, dword [esi]
mov ecx, esi
mov edi, dword [eax]
call dword [edx + 4]
mov ecx, dword [esi + 0x358]
push eax
push 2
call dword [edi + 0x10]
mov eax, dword [esi + 0x358]
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
push 0x10
mov edi, dword [eax]
call dword [edx + 8]
mov ecx, dword [esi + 0x358]
push eax
push 3
call dword [edi + 0x14]
mov ecx, dword [esi + 0x358]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi + 0x358]
test ecx, ecx
je 0x5b5c30
mov edx, dword [ecx]
push 5
call dword [edx + 8]
mov ecx, dword [esi + 0x358]
mov edi, eax
push 4
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x358]
push 6
mov dword [ebp - 0xc], eax
mov edx, dword [ecx]
call dword [edx + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x358]
add edi, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push edi
push 5
call dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x358]
add edi, edx
push edi
push 4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x358]
add edi, edx
push edi
push 6
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x358]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x3f0]
mov eax, dword [ecx + 0x10]
push eax
call fcn.00533fa0
add esp, 4
test eax, eax
je 0x5b5d0a
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x360]
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x5b5d01
mov edi, dword [0x7fd61c]
test edi, edi
jne 0x5b5c89
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov edx, dword [esi + 0x360]
mov eax, dword [esi]
push edx
mov ecx, esi
call dword [eax + 4]
push eax
mov ecx, edi
call fcn.00533bb0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
je 0x5b5d01
mov eax, dword [0x7fd61c]
test eax, eax
jne 0x5b5ce4
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 0x5b5ce7
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 8]
push eax
call fcn.00533970
mov dword [esi + 0x390], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x360], eax
mov eax, dword [esi + 0x360]
test eax, eax
je 0x5b6052
mov ecx, dword [0x7fd61c]
test ecx, ecx
jne 0x5b5d45
push 0x1ca
push 0x797a90
push str.g_pTutorexpManager
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
mov edx, dword [esi + 0x360]
push edx
call fcn.00533d60
mov edi, eax
test edi, edi
je 0x5b6052
mov eax, dword [0x7fd594]
test eax, eax
jne 0x5b5d8e
push 0x1b7
push 0x797a90
push str.g_pStudentTypeSet
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp - 4], 0
jmp 0x5b5d91
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
push eax
push 1
call fcn.0054b4c0
test eax, eax
mov dword [ebp - 4], eax
jne 0x5b5dc0
push 0x480
push 0x7bc5ac
push str.pTypeInfo
jmp 0x5b5910
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
push 0x64
push ecx
push edx
call dword [sym.imp.kernel32.dll_MulDiv]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
push 0x64
mov ecx, dword [eax + 0x14]
push ecx
push edx
call dword [sym.imp.kernel32.dll_MulDiv]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
fild dword [eax + 0x18]
fmul dword [ebp + 0x10]
call fcn.00702d1c
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x28]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x2c]
fild dword [ebp + 0x10]
add edx, ecx
push 5
mov dword [ebx + 0x28], edx
mov edx, dword [ebp + 0xc]
fadd dword [ebx + 0x30]
add eax, edx
mov ecx, edi
mov dword [ebx + 0x2c], eax
fstp dword [ebx + 0x30]
mov eax, dword [edi]
call dword [eax + 8]
add eax, dword [ebp + 8]
cmp eax, 0xea60
jle 0x5b5e31
mov eax, 0xea60
mov edx, dword [edi]
push eax
push 5
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 4
mov ecx, edi
call dword [eax + 8]
add eax, dword [ebp + 0xc]
cmp eax, 0x2d0
jle 0x5b5e53
mov eax, 0x2d0
mov edx, dword [edi]
push eax
push 4
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [edi]
push 6
mov ecx, edi
call dword [eax + 8]
add eax, dword [ebp + 0x10]
cmp eax, 0x8ca0
jle 0x5b5e75
mov eax, 0x8ca0
mov edx, dword [edi]
push eax
push 6
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [esi + 0x35c]
test eax, eax
jne 0x5b5fd7
call fcn.005b6e60
mov ebx, eax
test ebx, ebx
mov dword [esi + 0x35c], ebx
je 0x5b5fd7
mov edi, dword [0x7fd5f0]
push 0x7b4240
push str.cq_tutor_contributions2
lea eax, [ebp - 0x114]
push str.SELECT__FROM__s_WHERE__s0_LIMIT_1
push eax
call fcn.0070258b
mov ecx, dword [0x801a30]
add esp, 0x10
test ecx, ecx
jne 0x5b5f3f
mov edx, dword [edi]
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, edi
call dword [edx]
mov edi, eax
mov eax, dword [0x801a30]
test eax, eax
jne 0x5b5eed
test edi, edi
jne 0x5b5f0b
push 0x1a
push str.....common_autoptr.h
push str._m_ptr__ptr
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
test edi, edi
setne al
mov ecx, edi
test al, al
mov dword [0x801a30], ecx
jne 0x5b5f3f
push 0x38
push str.....GameBaseCodeMTGameData.h
push str.CreateNewDefault_pDb_
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5b5fd7
mov edx, dword [ecx]
push 0
call dword [edx]
test eax, eax
mov dword [ebx + 4], eax
je 0x5b5f5b
mov edx, dword [eax]
push 0x7b4240
mov ecx, eax
call dword [edx + 0x30]
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
test edx, edx
setne al
test al, al
je 0x5b5fd7
mov ecx, dword [esi + 0x35c]
mov edx, dword [esi + 0x360]
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0x3f0]
mov ecx, dword [esi + 0x35c]
mov edx, dword [edx + 0x10]
mov eax, dword [ecx]
push edx
push 2
call dword [eax + 0x10]
mov eax, dword [esi + 0x35c]
mov edx, dword [esi]
mov ecx, esi
mov edi, dword [eax]
call dword [edx + 4]
mov ecx, dword [esi + 0x35c]
push eax
push 3
call dword [edi + 0x10]
mov eax, dword [esi + 0x35c]
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
push 0x10
mov edi, dword [eax]
call dword [edx + 8]
mov ecx, dword [esi + 0x35c]
push eax
push 4
call dword [edi + 0x14]
mov ecx, dword [esi + 0x35c]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi + 0x35c]
test ecx, ecx
je 0x5b6052
mov edx, dword [ecx]
push 6
call dword [edx + 8]
mov ecx, dword [esi + 0x35c]
mov edi, eax
push 5
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x35c]
push 7
mov ebx, eax
mov edx, dword [ecx]
call dword [edx + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x35c]
add edi, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push edi
push 6
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x35c]
add ebx, edx
mov eax, dword [ecx]
push ebx
push 5
call dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x35c]
add edx, edi
push edx
push 7
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [esi + 0x35c]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc