Function at 0x488560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0x104]
mov dword [esp], eax
call fcn.0066643c
lea edx, [ebp - 0x48]
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 - 0x44]
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 - 0xfc]
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 - 0x44]
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 - 0x48]
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 0x48862e
mov esi, dword [ebp - 0x44]
sub esi, 0xc
cmp esi, 0x7bf7a4
je 0x488690
cmp dword [0x8e6f60], 0
je 0x48865c
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov edi, eax
jmp 0x488665
mov edi, dword [esi + 8]
lea eax, [edi - 1]
mov dword [esi + 8], eax
test edi, edi
jg 0x488690
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x488690
mov esi, dword [ebp - 0x48]
sub esi, 0xc
mov eax, 0x7bf7a4
cmp eax, esi
je 0x4886e4
cmp dword [0x8e6f60], 0
je 0x4886bf
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov edi, eax
jmp 0x4886c8
mov edi, dword [esi + 8]
lea eax, [edi - 1]
mov dword [esi + 8], eax
test edi, edi
jg 0x4886e4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4886e4
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0xf8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov edi, eax
mov esi, dword [ebp - 0x40]
sub esi, 0xc
mov edx, 0x7bf7a4
cmp edx, esi
je 0x488784
cmp dword [0x8e6f60], 0
je 0x488742
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x10c], eax
jmp 0x488751
mov ecx, dword [esi + 8]
mov dword [ebp - 0x10c], ecx
mov eax, ecx
dec eax
mov dword [esi + 8], eax
cmp dword [ebp - 0x10c], 0
jg 0x488784
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x488784
test edi, edi
je 0x488a8e
mov eax, dword [edi]
mov esi, dword [eax]
lea eax, [ebp - 0x35]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4bfc
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
mov esi, eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x4887de
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0x10]
lea eax, [ebp - 0x2d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d46bc
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.007041ec
mov eax, dword [ebp - 0x34]
mov edx, dword [eax - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0xd4]
mov dword [esp], eax
call fcn.0070342c
mov eax, dword [ebp - 0xd8]
test al, 3
jne 0x48882d
mov edi, 0
jmp 0x488836
mov eax, dword [ebp - 0xd4]
mov edi, dword [eax - 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xd4]
mov dword [esp + 4], eax
lea eax, [ebp - 0xf8]
mov dword [esp], eax
call fcn.00717e3c
jmp 0x48886e
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.0070479c
jmp 0x488882
lea edx, [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax + 0x30]
sub esp, 4
lea edx, [ebp - 0x28]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax + 0x20]
sub esp, 4
mov dword [esp + 4], str.UPDATE__guild_ranks__SET__name__
lea eax, [ebp - 0xfc]
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 dword [esp + 4], 0x7d4906
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00701d98
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
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0070479c
jmp 0x488939
mov edi, dword [ebp - 0x2c]
sub edi, 0xc
mov eax, 0x7bf7a4
cmp eax, edi
je 0x48899c
cmp dword [0x8e6f60], 0
je 0x48896c
mov dword [esp + 4], 0xffffffff
lea eax, [edi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x10c], eax
jmp 0x48897b
mov edx, dword [edi + 8]
mov dword [ebp - 0x10c], edx
mov eax, edx
dec eax
mov dword [edi + 8], eax
cmp dword [ebp - 0x10c], 0
jg 0x48899c
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00702c78
jmp 0x48899c
mov eax, dword [ebx]
mov edi, dword [eax + 0x18]
lea eax, [ebp - 0x24]
lea edx, [ebp - 0xf8]
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 bl, al
mov edi, dword [ebp - 0x24]
sub edi, 0xc
mov ecx, 0x7bf7a4
cmp ecx, edi
je 0x488a34
cmp dword [0x8e6f60], 0
je 0x4889fa
mov dword [esp + 4], 0xffffffff
lea eax, [edi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x10c], eax
jmp 0x488a07
mov eax, dword [edi + 8]
mov dword [ebp - 0x10c], eax
dec eax
mov dword [edi + 8], eax
cmp dword [ebp - 0x10c], 0
jg 0x488a34
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00702c78
jmp 0x488a34
test bl, bl
je 0x488a8e
mov ebx, dword [0x8e079c]
mov edi, 0x8e0794
jmp 0x488a6e
mov eax, dword [ebx + 0x14]
cmp esi, dword [eax + 0x59c]
jne 0x488a64
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
add eax, 0x68c
mov dword [esp], eax
call fcn.00703510
mov dword [esp], ebx
call fcn.00757c28
mov ebx, eax
cmp edi, ebx
jne 0x488a45
mov bl, 1
jmp 0x488a90
mov bl, 0
lea eax, [ebp - 0x104]
mov dword [esp], eax
call fcn.006668d4
mov al, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret