Function at 0x417b50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x48], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x42], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x46], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x3c], cl
mov ecx, dword [eax + 4]
push ebx
mov word [ebp - 0x3e], dx
mov edx, dword [eax]
mov dword [ebp - 0x37], ecx
movzx ecx, byte [eax + 0xa]
push esi
mov dword [ebp - 0x3b], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x31], cl
push str.SELECT__FROM_QuestKillCount_WHERE_Name_s
mov ecx, 0x424ee0
mov bl, 0x48
mov dword [ebp - 0x4c], 0xc48c1
mov word [ebp - 0x33], dx
call fcn.00417790
add esp, 8
test al, al
je 0x417d83
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417d83
push str.QuestIndex
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x417bed
or eax, 0xffffffff
jmp 0x417bfb
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MonsterClass1
mov dword [ebp - 0x30], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417c11
or eax, eax
jmp 0x417c1f
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MonsterClass2
mov dword [ebp - 0x2c], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417c35
or eax, eax
jmp 0x417c43
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MonsterClass3
mov dword [ebp - 0x28], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417c59
or eax, eax
jmp 0x417c67
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MonsterClass4
mov dword [ebp - 0x24], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417c7d
or eax, eax
jmp 0x417c8b
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MonsterClass5
mov dword [ebp - 0x20], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417ca1
or eax, eax
jmp 0x417caf
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.KillCount1
mov dword [ebp - 0x1c], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417cc5
or eax, eax
jmp 0x417cd3
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.KillCount2
mov dword [ebp - 0x18], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417ce9
or eax, eax
jmp 0x417cf7
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.KillCount3
mov dword [ebp - 0x14], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417d0d
or eax, eax
jmp 0x417d1b
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.KillCount4
mov dword [ebp - 0x10], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417d31
or eax, eax
jmp 0x417d3f
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.KillCount5
mov dword [ebp - 0xc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417d55
or eax, eax
jmp 0x417d63
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x417dc8
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
or eax, 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
push ecx
movzx ebx, bl
push edx
call fcn.004198e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4