Function at 0x43b260
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4a701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x2c], ecx
xor esi, esi
mov dword [ebp - 0x20], ebx
push edi
test ebx, ebx
je 0x43b557
call fcn.0043df80
mov edi, eax
test edi, edi
jne 0x43b2a9
push 0x24
push str.D:_ragnarokbr_rathena_srccharint_quest.cpp
push str.at__s:_lu____self_is_NULL_n
call fcn.004427f0
add esp, 0xc
jmp 0x43b555
push 0x4ac3b4
xorps xmm0, xmm0
push str.SELECT__quest_id____state____time____count1____count2____count3__FROM___s__WHERE__char_id__
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.0043e040
add esp, 0xc
cmp eax, 0xffffffff
je 0x43b514
push 0
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
push 0xb
mov ecx, edi
call fcn.0043e1d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x43b514
mov ecx, edi
call fcn.0043e300
cmp eax, 0xffffffff
je 0x43b514
sub esp, 8
lea eax, [ebp - 0x1c]
xor edx, edx
mov ecx, edi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b514
sub esp, 8
lea eax, [ebp - 8]
mov edx, 1
mov ecx, edi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b514
sub esp, 8
lea eax, [ebp - 0x18]
mov edx, 2
mov ecx, edi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b514
sub esp, 8
lea eax, [ebp - 0x14]
mov edx, 3
mov ecx, edi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b514
sub esp, 8
lea eax, [ebp - 0x10]
mov edx, 4
mov ecx, edi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b514
sub esp, 8
lea eax, [ebp - 0xc]
mov edx, 5
mov ecx, edi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x43b514
push dword [edi + 0xc]
call dword [sym.imp.libmysql.dll_mysql_stmt_num_rows]
mov dword [ebp - 0x24], edx
mov dword [ebx], eax
test eax, eax
jle 0x43b4fa
lea esi, [eax + eax*2]
mov edx, str.D:_ragnarokbr_rathena_srccharint_quest.cpp
push ecx
shl esi, 3
xor ebx, ebx
push 0x3f
mov ecx, esi
call fcn.00444690
push esi
push ebx
push eax
mov dword [ebp - 0x24], eax
call fcn.00461440
add esp, 0x14
mov ecx, edi
call fcn.0043e610
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x43b450
mov ecx, dword [ebp - 0x24]
nop dword [eax]
cmp ebx, dword [esi]
jge 0x43b4f7
movups xmm0, xmmword [ebp - 0x1c]
mov eax, ecx
inc ebx
add ecx, 0x18
mov dword [ebp - 0x20], ecx
mov ecx, edi
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [eax + 0x10], xmm0
call fcn.0043e610
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x43b420
cmp ebx, dword [esi]
jge 0x43b4f7
lea ecx, [ebx + ebx*2]
mov dword [esi], ebx
mov esi, dword [ebp - 0x24]
shl ecx, 3
test esi, esi
jne 0x43b493
push ecx
push 0x48
mov edx, str.D:_ragnarokbr_rathena_srccharint_quest.cpp
call fcn.00444690
add esp, 8
mov ecx, edi
mov esi, eax
call fcn.0043e860
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
movzx ebx, word [esi - 2]
test ebx, ebx
jne 0x43b49e
mov ebx, dword [esi - 0x18]
cmp ebx, ecx
ja 0x43b4fa
push ecx
push 0x48
mov edx, str.D:_ragnarokbr_rathena_srccharint_quest.cpp
call fcn.00444690
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x43b4c4
push ebx
push esi
push eax
call fcn.00460ec0
add esp, 0xc
push str.mapif_quests_fromsql
push 0x48
mov edx, str.D:_ragnarokbr_rathena_srccharint_quest.cpp
mov ecx, esi
call fcn.004449e0
mov esi, dword [ebp - 0x20]
add esp, 8
mov ecx, edi
call fcn.0043e860
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x24]
mov ecx, edi
call fcn.0043e860
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
mov eax, ecx
sub eax, dword [edi]
test eax, eax
jle 0x43b53a
mov byte [ecx], 0
push dword [edi]
push 0x35
push str.D:_ragnarokbr_rathena_srccharint_quest.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x43b54e
push 0x35
push str.D:_ragnarokbr_rathena_srccharint_quest.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov ecx, edi
call fcn.0043e860
mov dword [ebx], esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret