Function at 0x410d40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2fdc
call fcn.004328a0
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x2fd8], edx
push edi
push 0x10a0
push 0
movzx eax, word [esi + 0xb]
movq xmm0, qword [esi + 3]
mov word [ebp - 8], ax
lea eax, [ebp - 0x2fd0]
push eax
mov byte [ebp - 6], 0
movq qword [ebp - 0x10], xmm0
call fcn.0041b210
movzx eax, word [esi + 0xe]
add esp, 0xc
mov word [ebp - 0x2fca], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2fd0], 0xe9a010c2
push eax
push str.SELECT_AccountID_Name_cLevel_Class_Experience_Power_Defense_Life_MaxLife_Mana_MaxMana_MapNumber_MapPosX_MapPosY_BotLife_BotMaxLife_BotLvlUpDefense_BotLvlUpPower_BotLvlUpLife_BotLvlUpMana_BotLvlUpExp_BotLvlUpMaxLevel_FROM_BotPet_WHERE_AccountID_s_AND_BotLife___BotMaxLife
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x411333
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411333
push str.AccountID
mov byte [ebp - 0x2fcc], 1
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410e0a
xorps xmm0, xmm0
mov word [ebp - 0x2fc0], 0
movq qword [ebp - 0x2fc8], xmm0
mov byte [ebp - 0x2fbe], 0
jmp 0x410e26
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x2fc8]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.Name
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410e52
xorps xmm0, xmm0
mov word [ebp - 0x2fb5], 0
movq qword [ebp - 0x2fbd], xmm0
mov byte [ebp - 0x2fb3], 0
jmp 0x410e6e
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x2fbd]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.cLevel
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410e81
or eax, eax
jmp 0x410e92
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Class
mov word [ebp - 0x2fb0], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410eac
or eax, eax
jmp 0x410ebd
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Experience
mov byte [ebp - 0x2fb2], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410ed6
or eax, eax
jmp 0x410ee7
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Power
mov dword [ebp - 0x2fac], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410f00
or eax, eax
jmp 0x410f11
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Defense
mov dword [ebp - 0x2fa8], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410f2a
or eax, eax
jmp 0x410f3b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Life
mov dword [ebp - 0x2fa4], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410f5a
movss xmm0, dword [0x43efe4]
jmp 0x410f79
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x2fd4]
movss xmm0, dword [ebp - 0x2fd4]
add esp, 4
cvttss2si eax, xmm0
push str.MaxLife
mov word [ebp - 0x2fa0], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410f9d
movss xmm0, dword [0x43efe4]
jmp 0x410fbc
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x2fd4]
movss xmm0, dword [ebp - 0x2fd4]
add esp, 4
cvttss2si eax, xmm0
push str.Mana
mov word [ebp - 0x2f9e], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x410fe0
movss xmm0, dword [0x43efe4]
jmp 0x410fff
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x2fd4]
movss xmm0, dword [ebp - 0x2fd4]
add esp, 4
cvttss2si eax, xmm0
push str.MaxMana
mov word [ebp - 0x2f9c], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x411023
movss xmm0, dword [0x43efe4]
jmp 0x411042
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
fstp dword [ebp - 0x2fd4]
movss xmm0, dword [ebp - 0x2fd4]
add esp, 4
cvttss2si eax, xmm0
push str.MapNumber
mov word [ebp - 0x2f9a], ax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x411060
or eax, eax
jmp 0x411071
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MapPosX
mov byte [ebp - 0x1f54], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x41108a
or eax, eax
jmp 0x41109b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MapPosY
mov byte [ebp - 0x1f53], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4110b4
or eax, eax
jmp 0x4110c5
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLife
mov byte [ebp - 0x1f52], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4110de
or eax, eax
jmp 0x4110ef
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotMaxLife
mov dword [ebp - 0x1f50], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x411108
or eax, eax
jmp 0x411119
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLvlUpDefense
mov dword [ebp - 0x1f4c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x411132
or eax, eax
jmp 0x411143
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLvlUpPower
mov dword [ebp - 0x1f48], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x41115c
or eax, eax
jmp 0x41116d
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLvlUpLife
mov dword [ebp - 0x1f44], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x411186
or eax, eax
jmp 0x411197
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLvlUpMana
mov dword [ebp - 0x1f40], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4111b0
or eax, eax
jmp 0x4111c1
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLvlUpExp
mov dword [ebp - 0x1f3c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4111da
or eax, eax
jmp 0x4111eb
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.BotLvlUpMaxLevel
mov dword [ebp - 0x1f38], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x411204
or eax, eax
jmp 0x411215
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push 0xf90
mov dword [ebp - 0x1f34], eax
lea eax, [ebp - 0xfa0]
push 0
push eax
call fcn.0041b210
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0xc
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebp - 0x2fbd]
push eax
lea eax, [ebp - 0x1f30]
push str.SELECT_Inventory_from_BotPet_where_Name_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xfa0]
push eax
lea eax, [ebp - 0x1f30]
push eax
call fcn.00417250
cmp eax, 0xffffffff
jne 0x411296
push 0xf90
push eax
lea eax, [ebp - 0xfa0]
push eax
call fcn.0041b210
add esp, 0xc
push 0xf90
lea eax, [ebp - 0xfa0]
mov ecx, 0x3e4
lea esi, [ebp - 0xfa0]
lea edi, [ebp - 0x2f98]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0041b210
add esp, 0xc
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebp - 0x2fbd]
push eax
lea eax, [ebp - 0x1f30]
push str.SELECT_MagicList_from_BotPet_where_Name_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xfa0]
push eax
lea eax, [ebp - 0x1f30]
push eax
call fcn.00417250
cmp eax, 0xffffffff
jne 0x41131e
push 0xf90
push eax
lea eax, [ebp - 0xfa0]
push eax
call fcn.0041b210
add esp, 0xc
mov ecx, 0x2d
lea esi, [ebp - 0xfa0]
lea edi, [ebp - 0x2008]
rep movsd dword es:[edi], dword [esi]
jmp 0x411356
push dword [0x44769c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call ebx
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x2fcc], 0
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10a0
lea eax, [ebp - 0x2fd0]
push eax
push dword [ebp - 0x2fd8]
call fcn.004182a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret