Function at 0x4325f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x170
mov ebx, edx
mov edi, ecx
push 0
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call fcn.00461440
add esp, 0xc
push edi
push 0x4ac4b4
push str.SELECT__homun_id___char_id___class___prev_class___name___level___exp___intimacy___hunger____str____agi____vit____int____dex____luk____hp___max_hp___sp___max_sp___skill_point___rename_flag____vaporize____autofeed__FROM___s__WHERE__homun_id__u
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43267f
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x432645
push 0xa1
jmp 0x432d97
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x43265f
mov byte [edx], 0
push dword [ecx]
push 0xa1
jmp 0x432dc7
push 0xa1
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x433010
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x432fdd
push eax
call dword [sym.imp.libmysql.dll_mysql_num_rows]
or eax, edx
mov esi, dword [0x4ad1b4]
je 0x432fdd
test esi, esi
je 0x432f86
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x432f82
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x432f68
push dword [esi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [esi + 0x3e8], eax
mov esi, dword [0x4ad1b4]
mov dword [ebx + 0x18], edi
test esi, esi
je 0x432728
cmp dword [esi + 0x3e4], 0
je 0x432728
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x432724
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x432724
mov eax, dword [esi + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x43272b
xor esi, esi
jmp 0x43272b
mov esi, dword [ebp - 0xc]
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x1c], eax
test edi, edi
je 0x43276d
cmp dword [edi + 0x3e4], 0
je 0x43276d
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x43276b
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x43276b
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 8]
jmp 0x43276d
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x20], ax
test edi, edi
je 0x4327b0
cmp dword [edi + 0x3e4], 0
je 0x4327b0
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4327ae
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 3
jbe 0x4327ae
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0xc]
jmp 0x4327b0
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x22], ax
test edi, edi
je 0x4327f3
cmp dword [edi + 0x3e4], 0
je 0x4327f3
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4327f1
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 4
jbe 0x4327f1
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x10]
jmp 0x4327f3
xor esi, esi
mov edi, esi
mov byte [ebx + 0x17], 0
mov edx, ebx
mov ecx, 0x17
sub edi, ebx
mov al, byte [edi + edx]
dec ecx
mov byte [edx], al
inc edx
test al, al
je 0x432813
test ecx, ecx
jne 0x432802
jmp 0x432823
test ecx, ecx
je 0x432823
push ecx
push 0
push edx
call fcn.00461440
add esp, 0xc
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x432859
cmp dword [edi + 0x3e4], 0
je 0x432859
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432857
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 5
jbe 0x432857
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x14]
jmp 0x432859
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x128], ax
test edi, edi
je 0x43289f
cmp dword [edi + 0x3e4], 0
je 0x43289f
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x43289d
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 6
jbe 0x43289d
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x18]
jmp 0x43289f
xor esi, esi
push 0xa
push 0
push esi
call fcn.0046a5d7
mov edi, dword [0x4ad1b4]
add esp, 0xc
mov dword [ebx + 0x130], eax
mov dword [ebx + 0x134], edx
test edi, edi
je 0x4328ee
cmp dword [edi + 0x3e4], 0
je 0x4328ee
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4328ec
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 7
jbe 0x4328ec
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x1c]
jmp 0x4328ee
xor esi, esi
push 0xa
push 0
push esi
call fcn.0046a591
mov edi, dword [0x4ad1b4]
add esp, 0xc
mov dword [ebx + 0x34], eax
test edi, edi
je 0x432934
cmp dword [edi + 0x3e4], 0
je 0x432934
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432932
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 8
jbe 0x432932
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x20]
jmp 0x432934
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x38], ax
test edi, edi
je 0x432977
cmp dword [edi + 0x3e4], 0
je 0x432977
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432975
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 9
jbe 0x432975
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x24]
jmp 0x432977
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x13c], eax
test edi, edi
je 0x4329bc
cmp dword [edi + 0x3e4], 0
je 0x4329bc
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4329ba
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xa
jbe 0x4329ba
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x28]
jmp 0x4329bc
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x140], eax
test edi, edi
je 0x432a01
cmp dword [edi + 0x3e4], 0
je 0x432a01
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4329ff
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xb
jbe 0x4329ff
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x2c]
jmp 0x432a01
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x144], eax
test edi, edi
je 0x432a46
cmp dword [edi + 0x3e4], 0
je 0x432a46
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432a44
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xc
jbe 0x432a44
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x30]
jmp 0x432a46
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x148], eax
test edi, edi
je 0x432a8b
cmp dword [edi + 0x3e4], 0
je 0x432a8b
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432a89
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xd
jbe 0x432a89
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x34]
jmp 0x432a8b
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x14c], eax
test edi, edi
je 0x432ad0
cmp dword [edi + 0x3e4], 0
je 0x432ad0
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432ace
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xe
jbe 0x432ace
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x38]
jmp 0x432ad0
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x150], eax
test edi, edi
je 0x432b15
cmp dword [edi + 0x3e4], 0
je 0x432b15
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432b13
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xf
jbe 0x432b13
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x3c]
jmp 0x432b15
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x24], eax
test edi, edi
je 0x432b57
cmp dword [edi + 0x3e4], 0
je 0x432b57
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432b55
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x10
jbe 0x432b55
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x40]
jmp 0x432b57
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x28], eax
test edi, edi
je 0x432b99
cmp dword [edi + 0x3e4], 0
je 0x432b99
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432b97
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x11
jbe 0x432b97
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x44]
jmp 0x432b99
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x2c], eax
test edi, edi
je 0x432bdb
cmp dword [edi + 0x3e4], 0
je 0x432bdb
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432bd9
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x12
jbe 0x432bd9
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x48]
jmp 0x432bdb
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x30], eax
test edi, edi
je 0x432c1d
cmp dword [edi + 0x3e4], 0
je 0x432c1d
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432c1b
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x13
jbe 0x432c1b
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x4c]
jmp 0x432c1d
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x126], ax
test edi, edi
je 0x432c63
cmp dword [edi + 0x3e4], 0
je 0x432c63
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432c61
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x14
jbe 0x432c61
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x50]
jmp 0x432c63
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x138], ax
test edi, edi
je 0x432ca9
cmp dword [edi + 0x3e4], 0
je 0x432ca9
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432ca7
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x15
jbe 0x432ca7
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x54]
jmp 0x432ca9
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov word [ebx + 0x13a], ax
test edi, edi
je 0x432cef
cmp dword [edi + 0x3e4], 0
je 0x432cef
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432ced
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0x16
jbe 0x432ced
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x58]
jmp 0x432cef
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
test eax, eax
setne al
mov byte [ebx + 0x16d], al
test edi, edi
je 0x432d42
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432d42
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [edi + 0x3e0], 0
mov dword [edi + 0x3e4], 0
mov dword [edi + 0x3e8], 0
mov edi, dword [0x4ad1b4]
movzx eax, word [ebx + 0x38]
mov ecx, 0x186a0
cmp dword [ebx + 0x34], ecx
cmovb ecx, dword [ebx + 0x34]
mov dword [ebx + 0x34], ecx
cmp ax, 0x64
jl 0x432d62
mov eax, 0x64
jmp 0x432d69
test ax, ax
jg 0x432d69
xor eax, eax
push dword [ebp - 8]
mov word [ebx + 0x38], ax
push 0x4ac5b4
push str.SELECT__id___lv__FROM___s__WHERE__homun_id__d
push edi
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x432e02
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x432db2
push 0xd0
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
xor al, al
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 0x432de2
mov byte [edx], 0
push dword [ecx]
push 0xd0
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd0
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x432f3a
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432f07
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [edi + 0x3e4], eax
test eax, eax
je 0x432eed
push dword [edi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [edi + 0x3e8], eax
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x432e79
cmp dword [edi + 0x3e4], 0
je 0x432e79
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432e77
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x432e77
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax]
jmp 0x432e79
xor esi, esi
push esi
call fcn.0046d2ec
add esp, 4
lea ebx, [eax - 0x1f41]
cmp ebx, 0x3a
ja 0x432e02
push esi
call fcn.0046d2ec
mov ecx, dword [ebp - 4]
add esp, 4
mov edi, dword [0x4ad1b4]
mov word [ecx + ebx*4 + 0x3a], ax
test edi, edi
je 0x432ed8
cmp dword [edi + 0x3e4], 0
je 0x432ed8
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432ed6
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x432ed6
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x432ed8
xor esi, esi
push esi
call fcn.0046d2ec
mov ecx, dword [ebp - 4]
add esp, 4
mov byte [ecx + ebx*4 + 0x3c], al
jmp 0x432e02
lea eax, [edi + 0x10]
mov dword [edi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x432f3a
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x432f3a
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [edi + 0x3e0], 0
mov dword [edi + 0x3e4], 0
mov dword [edi + 0x3e8], 0
cmp dword [0x4a9e18], 0
je 0x432f5f
mov ebx, dword [ebp - 4]
push dword [ebx + 0x1c]
movsx eax, word [ebx + 0x20]
push eax
push ebx
push dword [ebx + 0x18]
push str.Homunculus_loaded__ID:__d____s___Class:__d___CID:__d_._n
call fcn.00442790
add esp, 0x14
mov al, 1
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]
mov esi, dword [0x4ad1b4]
test esi, esi
jne 0x432f97
push 0xac
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x432fcf
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, dword [esi]
test eax, eax
jle 0x432fc0
mov byte [ecx], 0
push dword [esi]
push 0xac
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x432fd7
push 0xac
push str.D:_ragnarokbr_rathena_srccharint_homun.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x433010
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x433010
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [esi + 0x3e8], 0
mov dword [esi + 0x3e4], 0
mov dword [esi + 0x3e0], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret