Function at 0x438390
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488b0e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
test esi, esi
je 0x4383f8
push 0x18
push esi
call fcn.0046d32b
add esp, 8
jmp 0x4383fa
xor eax, eax
mov ecx, dword [0x4ad1b4]
push eax
lea eax, [ebp - 0x44]
push esi
push eax
test ecx, ecx
je 0x438416
lea eax, [ecx + 0x10]
push eax
call dword [sym.imp.libmysql.dll_mysql_real_escape_string]
jmp 0x43841c
call dword [sym.imp.libmysql.dll_mysql_escape_string]
lea eax, [ebp - 0x44]
push eax
push 0x4abcb4
push str.SELECT__party_id__FROM___s__WHERE__name__s
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4384ab
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x438463
push 0x122
push str.D:_ragnarokbr_rathena_srccharint_party.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
jmp 0x4385b5
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x43848f
mov byte [edx], 0
push dword [ecx]
push 0x122
push str.D:_ragnarokbr_rathena_srccharint_party.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4385b5
push 0x122
push str.D:_ragnarokbr_rathena_srccharint_party.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
jmp 0x4385b5
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x4385b5
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x4385b5
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x4385a1
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 0x438524
cmp dword [esi + 0x3e4], 0
je 0x438524
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x438520
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x438520
mov eax, dword [esi + 0x3e4]
mov eax, dword [eax]
jmp 0x438527
xor eax, eax
jmp 0x438527
mov eax, dword [ebp - 0x58]
push eax
call fcn.0046d2ec
add esp, 4
lea ecx, [ebp - 0x54]
mov edx, eax
call fcn.00437ac0
or ebx, 0xffffffff
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [edi], ecx
mov esi, dword [edi + 4]
mov dword [edi + 4], edx
test esi, esi
je 0x43857a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x43857a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x43857a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4385b5
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4385b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4385b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x4385b5
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 0x4385ee
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x4385ee
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 eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret