Function at 0x43a5e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x4ad1bc]
mov ebx, ecx
push 0x38
push 0
push edi
mov dword [ebp - 4], ebx
call fcn.00461440
add esp, 0xc
push ebx
push 0x4abdb4
push str.SELECT__pet_id____class___name___account_id___char_id___level___egg_id___equip___intimate___hungry___rename_flag___incubate___autofeed__FROM___s__WHERE__pet_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43a690
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x43a646
push 0x4c
push str.D:_ragnarokbr_rathena_srccharint_pet.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x43a673
mov byte [edx], 0
push dword [ecx]
push 0x4c
push str.D:_ragnarokbr_rathena_srccharint_pet.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c
push str.D:_ragnarokbr_rathena_srccharint_pet.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x43aad7
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43aad7
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x43aac3
push dword [esi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [esi + 0x3e8], eax
mov esi, dword [0x4ad1b4]
mov dword [edi + 8], ebx
test esi, esi
je 0x43a70e
cmp dword [esi + 0x3e4], 0
je 0x43a70e
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43a70a
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x43a70a
mov eax, dword [esi + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x43a711
xor esi, esi
jmp 0x43a711
mov esi, dword [ebp - 8]
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov word [edi + 0xc], ax
test ebx, ebx
je 0x43a761
cmp dword [ebx + 0x3e4], 0
je 0x43a761
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a75b
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x43a75b
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x3e8]
mov ecx, dword [eax + 8]
jmp 0x43a764
xor ecx, ecx
xor esi, esi
jmp 0x43a764
mov ecx, dword [ebp - 0xc]
mov eax, 0x18
lea edx, [edi + 0x1c]
cmp ecx, eax
cmovb eax, ecx
push eax
push esi
push edx
call fcn.00460ec0
mov ebx, dword [0x4ad1b4]
add esp, 0xc
test ebx, ebx
je 0x43a7b2
cmp dword [ebx + 0x3e4], 0
je 0x43a7b2
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a7b0
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 3
jbe 0x43a7b0
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0xc]
jmp 0x43a7b2
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov dword [edi], eax
test ebx, ebx
je 0x43a7f3
cmp dword [ebx + 0x3e4], 0
je 0x43a7f3
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a7f1
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 4
jbe 0x43a7f1
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x10]
jmp 0x43a7f3
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov dword [edi + 4], eax
test ebx, ebx
je 0x43a835
cmp dword [ebx + 0x3e4], 0
je 0x43a835
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a833
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 5
jbe 0x43a833
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x14]
jmp 0x43a835
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov word [edi + 0xe], ax
test ebx, ebx
je 0x43a878
cmp dword [ebx + 0x3e4], 0
je 0x43a878
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a876
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 6
jbe 0x43a876
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x18]
jmp 0x43a878
xor esi, esi
push 0xa
push 0
push esi
call fcn.0046a591
mov ebx, dword [0x4ad1b4]
add esp, 0xc
mov dword [edi + 0x10], eax
test ebx, ebx
je 0x43a8be
cmp dword [ebx + 0x3e4], 0
je 0x43a8be
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a8bc
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 7
jbe 0x43a8bc
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x1c]
jmp 0x43a8be
xor esi, esi
push 0xa
push 0
push esi
call fcn.0046a591
mov ebx, dword [0x4ad1b4]
add esp, 0xc
mov dword [edi + 0x14], eax
test ebx, ebx
je 0x43a904
cmp dword [ebx + 0x3e4], 0
je 0x43a904
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a902
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 8
jbe 0x43a902
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x20]
jmp 0x43a904
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov word [edi + 0x18], ax
test ebx, ebx
je 0x43a947
cmp dword [ebx + 0x3e4], 0
je 0x43a947
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a945
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 9
jbe 0x43a945
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x24]
jmp 0x43a947
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov word [edi + 0x1a], ax
test ebx, ebx
je 0x43a98a
cmp dword [ebx + 0x3e4], 0
je 0x43a98a
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a988
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xa
jbe 0x43a988
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x28]
jmp 0x43a98a
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov byte [edi + 0x34], al
test ebx, ebx
je 0x43a9cc
cmp dword [ebx + 0x3e4], 0
je 0x43a9cc
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43a9ca
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xb
jbe 0x43a9ca
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x2c]
jmp 0x43a9cc
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov byte [edi + 0x35], al
test ebx, ebx
je 0x43aa0e
cmp dword [ebx + 0x3e4], 0
je 0x43aa0e
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x43aa0c
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xc
jbe 0x43aa0c
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x30]
jmp 0x43aa0e
xor esi, esi
push esi
call fcn.0046d2ec
mov esi, dword [0x4ad1b4]
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x36], al
test esi, esi
je 0x43aa58
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43aa58
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [esi + 0x3e0], 0
mov dword [esi + 0x3e4], 0
mov dword [esi + 0x3e8], 0
movzx edx, word [edi + 0x1a]
mov eax, edx
cmp dx, 0x64
jl 0x43aa6b
mov eax, 0x64
jmp 0x43aa76
xor ecx, ecx
test dx, dx
cmovg ecx, eax
movzx eax, cx
movzx edx, word [edi + 0x18]
mov ecx, 0x3e8
mov word [edi + 0x1a], ax
mov eax, edx
cmp dx, cx
jl 0x43aa8e
mov eax, ecx
jmp 0x43aa99
xor ecx, ecx
test dx, dx
cmovg ecx, eax
movzx eax, cx
mov word [edi + 0x18], ax
cmp dword [0x4a9e18], 0
je 0x43aad7
lea eax, [edi + 0x1c]
push eax
push dword [ebp - 4]
push str.Pet_loaded___d____s_._n
call fcn.00442790
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x10]
mov dword [esi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret