Function at 0x431660
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xda0
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 8
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0x13
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00434160
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.004063d0
add esp, 4
cmp eax, 1
jne 0x431afe
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406360
add esp, 4
cmp eax, 1
jne 0x431afe
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.SELECT_AccountID_Name_FROM__s.dbo.BotPet_WHERE_AccountID_s_AND_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x14
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x431731
cmp dword [ebp - 0x20], 0
jne 0x431919
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x7d0]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7cc]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x7c8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x7c4]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7c0]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x7bc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x7b8]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7b4]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x7b0]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x7ae]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x7ad]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x7ac]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + 0x36]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 0x34]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 0x32]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + 0x30]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x1e]
push ecx
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 0x20]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x13
push ecx
mov edx, dword [ebp + 0x10]
add edx, 8
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.INSERT_INTO__s.dbo.BotPet__AccountID__Name__cLevel__Class__Experience__Power__Defense__Life__MaxLife__Mana__MaxMana__MapNumber__MapPosX__MapPosY__BotLife__BotMaxLife__BotLvlUpDefense__BotLvlUpPower__BotLvlUpLife__BotLvlUpMana__BotLvlUpExp__BotLvlUpMaxLevel__BotVersion__CDate__VALUES___s___s___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d___d__GETDATE___
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x68
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.UPDATE__s.dbo.BotPet_SET_Inventory__WHERE_AccountID_s_AND_Name_s
lea edx, [ebp - 0x6e0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x6c0
mov eax, dword [ebp + 0x10]
add eax, 0x38
push eax
lea ecx, [ebp - 0x6e0]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408fe0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.UPDATE__s.dbo.BotPet_SET_MagicList__WHERE_AccountID_s_AND_Name_s
lea edx, [ebp - 0x6e0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0xb4
mov eax, dword [ebp + 0x10]
add eax, 0x6f8
push eax
lea ecx, [ebp - 0x6e0]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408fe0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
jmp 0x431afe
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 0x10]
add edx, 0x13
push edx
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x7d0]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7cc]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x7c8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x7c4]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7c0]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x7bc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x7b8]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7b4]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x7b0]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x7ae]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x7ad]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x7ac]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + 0x36]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 0x34]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 0x32]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + 0x30]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x1e]
push ecx
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 0x20]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.UPDATE__s.dbo.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__BotVersion_d_WHERE_AccountID___s_AND_Name___s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x68
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.UPDATE__s.dbo.BotPet_SET_Inventory__WHERE_AccountID_s_AND_Name_s
lea eax, [ebp - 0xda0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x6c0
mov ecx, dword [ebp + 0x10]
add ecx, 0x38
push ecx
lea edx, [ebp - 0xda0]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408fe0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.UPDATE__s.dbo.BotPet_SET_MagicList__WHERE_AccountID_s_AND_Name_s
lea eax, [ebp - 0xda0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0xb4
mov ecx, dword [ebp + 0x10]
add ecx, 0x6f8
push ecx
lea edx, [ebp - 0xda0]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408fe0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret