Function at 0x436c40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edx
push ecx
push 0x4ac6b4
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push str.SELECT__class____hp____sp____kill_counter____life_time__FROM___s__WHERE__mer_id____d_AND__char_id____d
push dword [0x4ad1b4]
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x436d0b
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x436cc1
push 0x6a
push str.D:_ragnarokbr_rathena_srccharint_mercenary.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 0x436cee
mov byte [edx], 0
push dword [ecx]
push 0x6a
push str.D:_ragnarokbr_rathena_srccharint_mercenary.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 0x6a
push str.D:_ragnarokbr_rathena_srccharint_mercenary.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 0x436f52
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436f1f
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x436f05
push dword [esi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [esi + 0x3e8], eax
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x436d84
cmp dword [esi + 0x3e4], 0
je 0x436d84
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436d80
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x436d80
mov eax, dword [esi + 0x3e4]
mov esi, dword [eax]
jmp 0x436d87
xor esi, esi
jmp 0x436d87
mov esi, dword [ebp - 4]
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov word [edi + 8], ax
test ebx, ebx
je 0x436dca
cmp dword [ebx + 0x3e4], 0
je 0x436dca
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x436dc8
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x436dc8
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x436dca
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov dword [edi + 0xc], eax
test ebx, ebx
je 0x436e0c
cmp dword [ebx + 0x3e4], 0
je 0x436e0c
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x436e0a
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x436e0a
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 8]
jmp 0x436e0c
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov dword [edi + 0x10], eax
test ebx, ebx
je 0x436e4e
cmp dword [ebx + 0x3e4], 0
je 0x436e4e
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x436e4c
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 3
jbe 0x436e4c
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0xc]
jmp 0x436e4e
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [0x4ad1b4]
add esp, 4
mov dword [edi + 0x14], eax
test ebx, ebx
je 0x436e90
cmp dword [ebx + 0x3e4], 0
je 0x436e90
mov eax, dword [ebx + 0x3e0]
test eax, eax
je 0x436e8e
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 4
jbe 0x436e8e
mov eax, dword [ebx + 0x3e4]
mov esi, dword [eax + 0x10]
jmp 0x436e90
xor esi, esi
push 0xa
push 0
push esi
call fcn.0046a545
mov esi, dword [0x4ad1b4]
add esp, 0xc
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
test esi, esi
je 0x436edc
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436edc
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
cmp dword [0x4a9e18], 0
je 0x436efc
push dword [edi + 4]
movsx eax, word [edi + 8]
push eax
push dword [edi]
push str.Mercenary_loaded__ID:__d___Class:__d___CID:__d_._n
call fcn.00442790
add esp, 0x10
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
je 0x436f52
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436f52
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
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret