Function at 0x41abb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx*4 + 0x4b5420]
test byte [esi], 1
jne 0x41afb9
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
sub edx, edi
cmp edx, 0xa
jb 0x41afb9
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi + 2]
mov eax, dword [eax + edi + 6]
mov dword [ebp - 8], eax
lea eax, [ebx - 1]
mov dword [ebp - 0xc], ecx
mov ecx, 0xa
cmp eax, 0xffe
ja 0x41ac2d
lea eax, [edi + 0xa]
cmp dword [esi + 0x18], eax
jae 0x41ac2a
push ebx
push edx
push ecx
push str.RFIFOSKIP:_skipped_past_end_of_read_buffer__Adjusting_from__u_to__d__session__d__n
call fcn.00442810
mov eax, dword [ebx*4 + 0x4b5420]
add esp, 0x10
test byte [eax], 1
je 0x41ac24
xor ecx, ecx
jmp 0x41ac2a
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x20]
add dword [esi + 0x20], ecx
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push esi
push 0x4aacb4
push str.SELECT_skill__tick_FROM___s__WHERE__account_id____d_AND__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41acd8
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x41ac82
push 0x22b
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
mov eax, 1
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 0x41acb5
mov byte [edx], 0
push dword [ecx]
push 0x22b
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x22b
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ad1b4]
test eax, eax
je 0x41af74
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x41af74
push eax
call dword [sym.imp.libmysql.dll_mysql_num_rows]
test edx, edx
jne 0x41ad06
test eax, eax
je 0x41af74
test ebx, ebx
je 0x41ad3c
mov ecx, dword [ebx*4 + 0x4b5420]
mov eax, dword [ecx + 0x1c]
add eax, 0x14e
cmp eax, dword [ecx + 0x14]
jbe 0x41ad3c
push str.chmapif_parse_req_skillcooldown
push 0x234
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
mov edx, 0x14e
mov ecx, ebx
call fcn.00440270
add esp, 0xc
mov edx, dword [ebx*4 + 0x4b5420]
mov edi, 0x2b0b
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov word [ecx + eax], di
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov edi, dword [ebp - 0x14]
mov dword [ecx + eax + 4], esi
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + eax + 8], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x41ae97
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x41ae97
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x41ae80
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 0x41adf7
cmp dword [esi + 0x3e4], 0
je 0x41adf7
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x41adf5
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x41adf5
mov eax, dword [esi + 0x3e4]
mov edi, dword [eax]
jmp 0x41adf7
xor edi, edi
push edi
call fcn.0046d2ec
mov esi, dword [0x4ad1b4]
add esp, 4
mov word [ebp - 0x28], ax
test esi, esi
je 0x41ae3a
cmp dword [esi + 0x3e4], 0
je 0x41ae3a
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x41ae38
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x41ae38
mov eax, dword [esi + 0x3e4]
mov edi, dword [eax + 4]
jmp 0x41ae3a
xor edi, edi
push 0xa
push 0
push edi
call fcn.0046a545
mov dword [ebp - 0x20], eax
add esp, 0xc
mov eax, dword [ebx*4 + 0x4b5420]
mov dword [ebp - 0x1c], edx
movups xmm0, xmmword [ebp - 0x28]
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
movups xmmword [ecx + eax + 0xe], xmm0
mov ecx, dword [ebp - 4]
add eax, 0x10
inc ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
cmp eax, 0x140
jl 0x41ad80
jmp 0x41ae97
lea eax, [esi + 0x10]
mov dword [esi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
mov ecx, dword [ebp - 4]
cmp ecx, 0x14
jl 0x41aeb4
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Too_many_skillcooldowns_for__d:_d__some_of_them_were_not_loaded._n
call fcn.004427d0
mov ecx, dword [ebp - 4]
add esp, 0xc
jmp 0x41aebc
test ecx, ecx
jle 0x41af74
mov edi, dword [ebx*4 + 0x4b5420]
movzx esi, cx
mov edx, esi
shl edx, 4
mov ecx, dword [edi + 0x1c]
add edx, 0xe
mov eax, dword [edi + 0xc]
mov word [ecx + eax + 2], dx
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0xc]
mov word [ecx + eax + 0xc], si
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0xc]
movzx edx, word [ecx + eax + 2]
mov ecx, ebx
call fcn.004403f0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x4aacb4
push str.DELETE_FROM___s__WHERE__account_id____d_AND__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41af74
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x41af34
push 0x247
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x41af6c
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x41af5d
mov byte [edx], 0
push dword [ecx]
push 0x247
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x41af74
push 0x247
push str.D:_ragnarokbr_rathena_srccharchar_mapif.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x41afad
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x41afad
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, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret