Function at 0x4113a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfb4
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov byte [ebp - 0x12], 0
push edi
push 0x27
mov dword [ebp - 0xfb4], esi
movzx eax, word [esi + 0x10]
movq xmm0, qword [esi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [esi + 0x1b]
mov word [ebp - 8], ax
lea eax, [ebp - 0x10]
movq qword [ebp - 0x1c], xmm0
movq xmm0, qword [esi + 0x13]
push eax
mov byte [ebp - 6], 0
movq qword [ebp - 0x10], xmm0
call fcn.0041afa0
add esp, 8
test eax, eax
jne 0x411677
lea eax, [ebp - 0x10]
push 0x20
push eax
call fcn.0041afa0
add esp, 8
test eax, eax
jne 0x411677
lea eax, [ebp - 0x10]
push 0x20
push eax
call fcn.0041afa0
add esp, 8
test eax, eax
jne 0x411677
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.SELECT_AccountID_Name_FROM_dbo.BotPet_WHERE_AccountID_s_AND_Name_s
push 0x447690
call fcn.00416db0
add esp, 0x10
movzx edi, al
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411506
test edi, edi
je 0x411506
push dword [0x44769c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call ebx
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call edi
lea eax, [esi + 0x13]
push eax
lea eax, [esi + 8]
push eax
push dword [esi + 0x109c]
movzx eax, byte [esi + 0x107e]
push dword [esi + 0x1098]
push dword [esi + 0x1094]
push dword [esi + 0x1090]
push dword [esi + 0x108c]
push dword [esi + 0x1088]
push dword [esi + 0x1084]
push dword [esi + 0x1080]
push eax
movzx eax, byte [esi + 0x107d]
push eax
movzx eax, byte [esi + 0x107c]
push eax
movzx eax, word [esi + 0x36]
push eax
movzx eax, word [esi + 0x34]
push eax
movzx eax, word [esi + 0x32]
push eax
movzx eax, word [esi + 0x30]
push eax
push dword [esi + 0x2c]
movzx eax, byte [esi + 0x1e]
push dword [esi + 0x28]
push dword [esi + 0x24]
push eax
movsx eax, word [esi + 0x20]
push eax
push str.UPDATE_BotPet_SET_cLevel_d__Class_d__Experience_d__Power_d__Defense_d__Life_d__MaxLife_d__Mana_d__MaxMana_d__MapNumber_d__MapPosX_d__MapPosY_d__BotLife_d__BotMaxLife_d__BotLvlUpDefense_d__BotLvlUpPower_d__BotLvlUpLife_d__BotLvlUpMana_d__BotLvlUpExp_d__BotLvlUpMaxLevel_d_WHERE_AccountID___s_AND_Name___s
jmp 0x4115a0
push dword [0x44769c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call ebx
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call edi
push dword [esi + 0x109c]
movzx eax, byte [esi + 0x107e]
push dword [esi + 0x1098]
push dword [esi + 0x1094]
push dword [esi + 0x1090]
push dword [esi + 0x108c]
push dword [esi + 0x1088]
push dword [esi + 0x1084]
push dword [esi + 0x1080]
push eax
movzx eax, byte [esi + 0x107d]
push eax
movzx eax, byte [esi + 0x107c]
push eax
movzx eax, word [esi + 0x36]
push eax
movzx eax, word [esi + 0x34]
push eax
movzx eax, word [esi + 0x32]
push eax
movzx eax, word [esi + 0x30]
push eax
push dword [esi + 0x2c]
movzx eax, byte [esi + 0x1e]
push dword [esi + 0x28]
push dword [esi + 0x24]
push eax
movsx eax, word [esi + 0x20]
push eax
lea eax, [esi + 0x13]
push eax
lea eax, [esi + 8]
push eax
push str.INSERT_INTO_BotPet__AccountID__Name__cLevel__Class__Experience__Power__Defense__Life__MaxLife__Mana__MaxMana__MapNumber__MapPosX__MapPosY__BotLife__BotMaxLife__BotLvlUpDefense__BotLvlUpPower__BotLvlUpLife__BotLvlUpMana__BotLvlUpExp__BotLvlUpMaxLevel__CDate__VALUES___s___s___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d__GETDATE___
push 0x447690
call fcn.00416db0
add esp, 0x60
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call edi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xfb0]
push str.UPDATE_BotPet_SET_Inventory__WHERE_AccountID_s_AND_Name_s
push eax
call esi
mov eax, dword [ebp - 0xfb4]
add esp, 0x10
add eax, 0x38
push 0xf90
push eax
lea eax, [ebp - 0xfb0]
push eax
call fcn.00417160
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xfb0]
push str.UPDATE_BotPet_SET_MagicList__WHERE_AccountID_s_AND_Name_s
push eax
call esi
mov eax, dword [ebp - 0xfb4]
add esp, 0x10
add eax, 0xfc8
push 0xb4
push eax
lea eax, [ebp - 0xfb0]
push eax
call fcn.00417160
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret