Function at 0x4126d0
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, 0x41ee38
mov bl, 0x48
mov dword [ebp - 0x4c], 0xc48c1
mov word [ebp - 0x33], dx
call fcn.00412310
add esp, 8
test al, al
je 0x412903
mov edx, dword [0x41ee44]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412903
push str.QuestIndex
call fcn.004124d0
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x41276d
or eax, 0xffffffff
jmp 0x41277b
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MonsterClass1
mov dword [ebp - 0x30], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x412791
or eax, eax
jmp 0x41279f
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MonsterClass2
mov dword [ebp - 0x2c], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4127b5
or eax, eax
jmp 0x4127c3
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MonsterClass3
mov dword [ebp - 0x28], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4127d9
or eax, eax
jmp 0x4127e7
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MonsterClass4
mov dword [ebp - 0x24], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4127fd
or eax, eax
jmp 0x41280b
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.MonsterClass5
mov dword [ebp - 0x20], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x412821
or eax, eax
jmp 0x41282f
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.KillCount1
mov dword [ebp - 0x1c], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x412845
or eax, eax
jmp 0x412853
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.KillCount2
mov dword [ebp - 0x18], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x412869
or eax, eax
jmp 0x412877
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.KillCount3
mov dword [ebp - 0x14], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x41288d
or eax, eax
jmp 0x41289b
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.KillCount4
mov dword [ebp - 0x10], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4128b1
or eax, eax
jmp 0x4128bf
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
push str.KillCount5
mov dword [ebp - 0xc], eax
call fcn.004124d0
cmp eax, 0xffffffff
jne 0x4128d5
or eax, eax
jmp 0x4128e3
shl eax, 0xd
add eax, 0x41fa66
push eax
call esi
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [0x41ee44]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x41ee44]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x412948
mov edx, dword [0x41ee44]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x41ee44]
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.00413de0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4