Function at 0x487b00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov edi, dword [ebp + 0xc]
mov al, byte [ebp + 0x14]
mov byte [ebp - 0x11d], al
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0x110]
mov dword [esp], eax
call fcn.0066643c
cmp byte [ebp - 0x11d], 0
jne 0x487b3d
mov esi, 0x7d4fd9
jmp 0x487b42
mov esi, 0x7d4fdb
mov dword [esp + 4], str.SELECT__id__FROM__guild_ranks__WHERE__guild_id__
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], str._AND__level__
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], 0x7d48da
mov dword [esp], eax
call fcn.0076107c
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x50]
lea edx, [ebp - 0x104]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov esi, eax
mov eax, dword [ebp - 0x50]
sub eax, 0xc
mov dword [ebp - 0x11c], eax
cmp eax, 0x7bf7a4
je 0x487c47
cmp dword [0x8e6f60], 0
je 0x487bf5
mov dword [esp + 4], 0xffffffff
lea eax, [eax + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x124], eax
jmp 0x487c0e
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x124], eax
dec eax
mov edx, dword [ebp - 0x11c]
mov dword [edx + 8], eax
cmp dword [ebp - 0x124], 0
jg 0x487c47
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call fcn.00702c78
jmp 0x487c47
test esi, esi
je 0x48815e
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x45]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4bfc
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x4c]
sub eax, 0xc
mov dword [ebp - 0x11c], eax
mov edx, 0x7bf7a4
cmp edx, eax
je 0x487d1b
cmp dword [0x8e6f60], 0
je 0x487cc2
mov dword [esp + 4], 0xffffffff
lea eax, [eax + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0x128], eax
jmp 0x487cdb
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x128], eax
dec eax
mov edx, dword [ebp - 0x11c]
mov dword [edx + 8], eax
cmp dword [ebp - 0x128], 0
jg 0x487d1b
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call fcn.00702c78
jmp 0x487d1b
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x10]
mov dword [ebp - 0x54], 0x7bf7b0
cmp byte [ebp - 0x11d], 0
jne 0x487ef5
lea eax, [ebp - 0x3d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d46bc
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.007041ec
mov eax, dword [ebp - 0x44]
mov edx, dword [eax - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0xe0]
mov dword [esp], eax
call fcn.0070342c
mov eax, dword [ebp - 0xe4]
test al, 3
jne 0x487d7e
mov esi, 0
jmp 0x487d87
mov eax, dword [ebp - 0xe0]
mov esi, dword [eax - 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x104]
mov dword [esp], eax
call fcn.00717e3c
jmp 0x487dbf
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.0070479c
jmp 0x487dd3
mov dword [esp + 4], str.SELECT__name__FROM__guilds__WHERE__id__
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], 0x7d48da
mov dword [esp], eax
call fcn.0076107c
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x104]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov esi, eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x487e52
test esi, esi
je 0x4880f3
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x2d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d4bb6
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.007041ec
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x11c]
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.00703510
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0070479c
jmp 0x487ed9
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.0070479c
jmp 0x487eed
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x10]
lea eax, [ebp - 0x25]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7d46bc
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.007041ec
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0xe0]
mov dword [esp], eax
call fcn.0070342c
mov eax, dword [ebp - 0xe4]
test al, 3
jne 0x487f3c
mov esi, 0
jmp 0x487f45
mov eax, dword [ebp - 0xe0]
mov esi, dword [eax - 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x104]
mov dword [esp], eax
call fcn.00717e3c
jmp 0x487f7d
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x487f91
lea edx, [ebp - 0x24]
mov eax, dword [ebx]
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax + 0x30]
sub esp, 4
mov eax, dword [edi + 0x58c]
mov dword [ebp - 0x11c], eax
mov dword [esp + 4], str.UPDATE__players__SET__rank_id__
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.0076107c
mov esi, dword [ebp - 0x124]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], 0x7d4906
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp - 0x11c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00701d98
mov edx, dword [ebp - 0x24]
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 - 0x24]
mov dword [esp], eax
call fcn.0070479c
jmp 0x48802e
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x104]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebp - 0x11c]
mov bl, al
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0070479c
jmp 0x48807f
test bl, bl
je 0x4880f3
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x598], eax
cmp byte [ebp - 0x11d], 0
je 0x48809c
mov ebx, 3
jmp 0x4880b6
lea eax, [ebp - 0x54]
mov dword [esp + 4], eax
lea eax, [edi + 0x688]
mov dword [esp], eax
call fcn.00703510
mov ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0052fe28
lea ebx, [edi + 0x358]
mov dword [esp], ebx
call fcn.00705630
mov dword [edi + 0x358], ebx
mov dword [edi + 0x35c], ebx
mov bl, 1
jmp 0x4880f5
mov bl, 0
mov esi, dword [ebp - 0x54]
sub esi, 0xc
mov edx, 0x7bf7a4
cmp edx, esi
je 0x488160
cmp dword [0x8e6f60], 0
je 0x488124
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov edi, eax
jmp 0x48812d
mov edi, dword [esi + 8]
lea eax, [edi - 1]
mov dword [esi + 8], eax
test edi, edi
jg 0x488160
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x488160
mov bl, 0
lea eax, [ebp - 0x110]
mov dword [esp], eax
call fcn.006668d4
mov al, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret