Function at 0x436760
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push ecx
push 0x4ac7b4
push str.SELECT__merc_id____arch_calls____arch_faith____spear_calls____spear_faith____sword_calls____sword_faith__FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
mov ebx, edx
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4367fa
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4367b0
push 0x18
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 0x4367dd
mov byte [edx], 0
push dword [ecx]
push 0x18
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 0x18
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 0x436aaf
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436a7c
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x436a62
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 0x436873
cmp dword [esi + 0x3e4], 0
je 0x436873
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43686f
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x43686f
mov eax, dword [esi + 0x3e4]
mov esi, dword [eax]
jmp 0x436876
xor esi, esi
jmp 0x436876
mov esi, dword [ebp - 4]
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x74], eax
test edi, edi
je 0x4368b8
cmp dword [edi + 0x3e4], 0
je 0x4368b8
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4368b6
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x4368b6
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x4368b8
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x88], eax
test edi, edi
je 0x4368fd
cmp dword [edi + 0x3e4], 0
je 0x4368fd
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4368fb
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x4368fb
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 8]
jmp 0x4368fd
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x84], eax
test edi, edi
je 0x436942
cmp dword [edi + 0x3e4], 0
je 0x436942
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x436940
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 3
jbe 0x436940
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0xc]
jmp 0x436942
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x90], eax
test edi, edi
je 0x436987
cmp dword [edi + 0x3e4], 0
je 0x436987
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x436985
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 4
jbe 0x436985
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x10]
jmp 0x436987
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x8c], eax
test edi, edi
je 0x4369cc
cmp dword [edi + 0x3e4], 0
je 0x4369cc
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4369ca
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 5
jbe 0x4369ca
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x14]
jmp 0x4369cc
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x98], eax
test edi, edi
je 0x436a11
cmp dword [edi + 0x3e4], 0
je 0x436a11
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x436a0f
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 6
jbe 0x436a0f
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0x18]
jmp 0x436a11
xor esi, esi
push esi
call fcn.0046d2ec
mov esi, dword [0x4ad1b4]
add esp, 4
mov dword [ebx + 0x94], eax
test esi, esi
je 0x436a59
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436a59
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
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 0x436aaf
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436aaf
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