Function at 0x43b960
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push 0x4ab4b4
push str.SELECT__guild_id__FROM___s__WHERE__guild_id__d
push dword [0x4ad1b4]
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43bab4
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x43ba74
push 0xc7
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x43b9f1
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x43b9f1
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 ebx, 0xc
test edi, edi
je 0x43ba26
mov ecx, dword [edi*4 + 0x4b5420]
mov eax, dword [ecx + 0x1c]
add eax, ebx
cmp eax, dword [ecx + 0x14]
jbe 0x43ba26
push str.mapif_load_guild_storage
push 0xd6
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
mov edx, ebx
mov ecx, edi
call fcn.00440270
add esp, 0xc
mov esi, dword [edi*4 + 0x4b5420]
mov edx, 0x3818
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x1c]
mov word [ecx + eax], dx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 4]
mov word [ecx + eax + 2], bx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov dword [ecx + eax + 4], edx
mov edx, ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov dword [ecx + eax + 8], 0
mov ecx, edi
call fcn.004403f0
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 0x43baa0
mov byte [edx], 0
push dword [ecx]
push 0xc7
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x43b9b8
push 0xc7
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
push str.at__s:_lu_n
jmp 0x43b9b0
mov eax, dword [0x4ad1b4]
test eax, eax
je 0x43b9b8
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x43b9b8
push eax
call dword [sym.imp.libmysql.dll_mysql_num_rows]
test edx, edx
jne 0x43bae2
test eax, eax
je 0x43b9b8
mov edx, 0xb49d
test edi, edi
je 0x43bb15
mov ecx, dword [edi*4 + 0x4b5420]
mov eax, dword [ecx + 0x1c]
add eax, edx
cmp eax, dword [ecx + 0x14]
jbe 0x43bb15
push str.mapif_load_guild_storage
push 0xca
push str.D:_ragnarokbr_rathena_srccharint_storage.cpp
mov ecx, edi
call fcn.00440270
add esp, 0xc
mov edx, dword [edi*4 + 0x4b5420]
mov ebx, 0x3818
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 0x1c]
mov word [ecx + eax], bx
mov ebx, 0xb49d
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov word [ecx + eax + 2], bx
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ecx + eax + 4], esi
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov dword [ecx + eax + 8], ebx
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0xc]
mov byte [ecx + eax + 0xc], 1
mov esi, dword [edx + 0x1c]
add esi, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
mov bl, byte [esi + 0x1f]
call fcn.0042c480
push ebx
push 4
push dword [ebp + 8]
movzx edx, ax
lea ecx, [esi + 0xd]
call fcn.00404e20
mov eax, dword [edi*4 + 0x4b5420]
add esp, 0xc
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0xc]
movzx edx, word [ecx + eax + 2]
mov ecx, edi
call fcn.004403f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret