Function at 0x48558a
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0xe8]
mov dword [esp], eax
call fcn.0066643c
lea edx, [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax + 0x20]
sub esp, 4
lea edx, [ebp - 0x28]
mov eax, dword [ebx]
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax + 0x2c]
sub esp, 4
mov dword [esp + 4], str.SELECT__id__FROM__guild_ranks__WHERE__guild_id__
lea eax, [ebp - 0xe0]
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], str._AND__name_
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00757358
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00757358
mov dword [esp + 4], 0x7d48da
mov dword [esp], eax
call fcn.0076107c
jmp 0x485658
mov edi, dword [ebp - 0x28]
sub edi, 0xc
mov esi, 0x7bf7a4
cmp edi, esi
je 0x4856c8
cmp dword [0x8e6f60], 0
je 0x48568b
mov dword [esp + 4], 0xffffffff
lea eax, [edi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0xec], eax
jmp 0x485698
mov eax, dword [edi + 8]
mov dword [ebp - 0xec], eax
dec eax
mov dword [edi + 8], eax
cmp dword [ebp - 0xec], 0
jg 0x4856c8
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00702c78
jmp 0x4856c8
mov edi, dword [ebp - 0x2c]
sub edi, 0xc
cmp esi, edi
je 0x485724
cmp dword [0x8e6f60], 0
je 0x4856f6
mov dword [esp + 4], 0xffffffff
lea eax, [edi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0xec], eax
jmp 0x485703
mov eax, dword [edi + 8]
mov dword [ebp - 0xec], eax
dec eax
mov dword [edi + 8], eax
cmp dword [ebp - 0xec], 0
jg 0x485724
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00702c78
jmp 0x485724
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
lea eax, [ebp - 0x24]
lea edx, [ebp - 0xdc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov ebx, eax
mov edi, dword [ebp - 0x24]
sub edi, 0xc
cmp esi, edi
je 0x4857aa
cmp dword [0x8e6f60], 0
je 0x485779
mov dword [esp + 4], 0xffffffff
lea eax, [edi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov esi, eax
jmp 0x485782
mov esi, dword [edi + 8]
lea eax, [esi - 1]
mov dword [edi + 8], eax
test esi, esi
jg 0x4857aa
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00702c78
jmp 0x4857aa
test ebx, ebx
je 0x48581c
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4bfc
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0070479c
jmp 0x4857fa
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x10]
jmp 0x485821
mov esi, 0
lea eax, [ebp - 0xe8]
mov dword [esp], eax
call fcn.006668d4
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret