Function at 0x428320
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4884bd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4a701c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x20], esi
mov ebx, ecx
mov dword [ebp - 0x34], ebx
test esi, esi
jg 0x428377
mov dword [ebx], 0
mov eax, ebx
mov dword [ebx + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x48]
call fcn.004290c0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4283b4
mov dword [ebx], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 4], 0
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x4aceb4
push str.SELECT__name____master____mapname____max_member__FROM___s__WHERE__clan_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x428437
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4283f5
push 0x35
push str.D:_ragnarokbr_rathena_srccharint_clan.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
jmp 0x4289b2
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x42841e
mov byte [edx], 0
push dword [ecx]
push 0x35
push str.D:_ragnarokbr_rathena_srccharint_clan.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4289b2
push 0x35
push str.D:_ragnarokbr_rathena_srccharint_clan.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
jmp 0x4289b2
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x4289b2
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x4289b2
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x42899e
push dword [esi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
push 0x8e8
mov dword [esi + 0x3e8], eax
call fcn.0045f6ff
mov ecx, eax
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x2c], eax
movq qword [ecx], xmm0
lea esi, [ecx + 0xc]
mov dword [ecx + 8], 0
push 0x8dc
mov dword [eax], 1
lea eax, [ecx + 8]
push 0
push esi
mov dword [ebp - 0x18], eax
mov dword [eax], 1
mov dword [ecx], vtable.std::_Ref_count_obj2_struct_clan_.0
mov dword [ebp - 0x1c], esi
call fcn.00461440
mov edi, dword [ebp - 0x44]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], esi
or esi, 0xffffffff
mov dword [ebp - 0x44], eax
test edi, edi
je 0x428500
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x428500
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x428500
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x428549
cmp dword [edi + 0x3e4], 0
je 0x428549
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x428543
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x428543
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax]
mov eax, dword [edi + 0x3e8]
mov edi, dword [eax]
jmp 0x42854f
xor esi, esi
xor edi, edi
jmp 0x42854f
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov eax, 0x18
add ecx, 0x10
mov dword [ebp - 0x10], edi
cmp edi, eax
mov dword [ebp - 0x30], ecx
cmovl eax, edi
push eax
push esi
push ecx
call fcn.00460ec0
mov eax, dword [0x4ad1b4]
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4285b9
cmp dword [eax + 0x3e4], 0
je 0x4285b9
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x4285b2
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x4285b2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x3e4]
mov esi, dword [eax + 4]
mov eax, dword [ecx + 0x3e8]
mov edi, dword [eax + 4]
jmp 0x4285b6
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, 0x18
cmp edi, eax
cmovl eax, edi
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x28
push esi
push eax
call fcn.00460ec0
mov eax, dword [0x4ad1b4]
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x42861d
cmp dword [eax + 0x3e4], 0
je 0x42861d
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x428616
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x428616
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x3e4]
mov esi, dword [eax + 8]
mov eax, dword [ecx + 0x3e8]
mov edi, dword [eax + 8]
jmp 0x42861a
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, 0x10
cmp edi, eax
cmovl eax, edi
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x40
push esi
push eax
call fcn.00460ec0
mov edi, dword [0x4ad1b4]
add esp, 0xc
test edi, edi
je 0x42866e
cmp dword [edi + 0x3e4], 0
je 0x42866e
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x42866c
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 3
jbe 0x42866c
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 0xc]
jmp 0x42866e
xor esi, esi
push esi
call fcn.0046d2ec
mov ecx, dword [ebp - 0x14]
add esp, 4
mov word [ecx + 0x50], ax
xor eax, eax
mov word [ecx + 0x52], ax
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x4286bd
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4286bd
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [edi + 0x3e0], 0
mov dword [edi + 0x3e4], 0
mov dword [edi + 0x3e8], 0
mov edi, dword [ebp - 0x14]
mov edx, 0x1f4
movzx eax, word [edi + 0x50]
mov ecx, eax
cmp ax, dx
jle 0x4286f2
push edx
movsx eax, cx
push eax
lea eax, [edi + 0x10]
push eax
push dword [ebp - 0x20]
push str.Clan__d:_s_specifies_higher_capacity___d__than_MAX_CLAN___d__n
call fcn.004427d0
mov eax, 0x1f4
add esp, 0x14
mov word [edi + 0x50], ax
push dword [ebp - 0x20]
push 0x4acfb4
push str.SELECT__opposition___alliance_id___name__FROM___s__WHERE__clan_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4287a4
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x42872e
push 0x4f
push str.D:_ragnarokbr_rathena_srccharint_clan.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x428760
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x428754
mov byte [edx], 0
push dword [ecx]
push 0x4f
push str.D:_ragnarokbr_rathena_srccharint_clan.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x428768
push 0x4f
push str.D:_ragnarokbr_rathena_srccharint_clan.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
or esi, 0xffffffff
mov dword [ebx], 0
mov dword [ebx + 4], 0
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x4289e7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0x18]
lock xadd dword [eax], esi
dec esi
jne 0x4289e7
mov eax, dword [edi]
mov ecx, edi
jmp 0x4289e4
lea eax, [edi + 0x82c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x428916
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x428916
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [edi + 0x3e4], eax
test eax, eax
je 0x428902
push dword [edi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [edi + 0x3e8], eax
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x428837
cmp dword [edi + 0x3e4], 0
je 0x428837
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x428835
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x428835
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax]
jmp 0x428837
xor esi, esi
push esi
call fcn.0046d2ec
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edi, dword [0x4ad1b4]
mov dword [ecx - 8], eax
test edi, edi
je 0x42887c
cmp dword [edi + 0x3e4], 0
je 0x42887c
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x42887a
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x42887a
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x42887c
xor esi, esi
push esi
call fcn.0046d2ec
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edi, dword [0x4ad1b4]
mov dword [ecx - 4], eax
test edi, edi
je 0x4288d0
cmp dword [edi + 0x3e4], 0
je 0x4288d0
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4288cb
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x4288cb
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 8]
mov eax, dword [edi + 0x3e8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
jmp 0x4288d0
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp - 0x18]
mov eax, 0x18
cmp dword [ebp - 0x10], eax
cmovb eax, dword [ebp - 0x10]
push eax
push esi
push edi
call fcn.00460ec0
mov ecx, dword [ebp - 0x24]
add edi, 0x20
inc ecx
mov dword [ebp - 0x18], edi
add esp, 0xc
mov dword [ebp - 0x24], ecx
cmp ecx, 6
jl 0x4287c0
jmp 0x428916
lea eax, [edi + 0x10]
mov dword [edi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00429170
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
lock inc dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ecx
test esi, esi
je 0x42895f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42895c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x42895c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
cmp dword [0x4a9e18], 0
je 0x42897b
push dword [ebp - 0x30]
push dword [ebp - 0x20]
push str.Clan_loaded___d____s__n
call fcn.00442790
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], 0
mov dword [ebx + 4], eax
mov eax, ebx
mov dword [ebx], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
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 [ebp - 0x44]
mov dword [ebx + 4], 0
mov dword [ebx], 0
test esi, esi
je 0x4289e7
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4289e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4289e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret