Function at 0x488178
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
call fcn.0043f37c
mov ebx, eax
lea eax, [ebp - 0xf0]
mov dword [esp], eax
call fcn.0066643c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x58c]
lea edx, [ebp - 0x34]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
add ecx, 0x688
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], 0x35
mov dword [esp], 0x8dfd80
call fcn.0041b8da
mov esi, eax
mov dword [esp + 4], str.INSERT_INTO__guilds____id____world_id____name____ownerid____creationdata____motd___VALUES__NULL_
lea eax, [ebp - 0xe8]
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00702728
mov dword [esp + 4], 0x7d480e
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp - 0x34]
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], 0x7d480e
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00701d98
mov dword [esp + 4], 0x7d480e
mov dword [esp], eax
call fcn.0076107c
mov edx, dword [ebp - 0xfc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00701bc0
mov dword [esp + 4], str.__Your_guild_has_been_successfully_created__to_view_all_available_commands_type:__commands._If_you_would_like_to_remove_this_message_use__cleanmotd_and_to_set_new_motd_use__setmotd_text._
mov dword [esp], eax
call fcn.0076107c
jmp 0x488293
mov esi, dword [ebp - 0x34]
sub esi, 0xc
cmp esi, 0x7bf7a4
je 0x4882e6
cmp dword [0x8e6f60], 0
je 0x4882c1
mov dword [esp + 4], 0xffffffff
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov edi, eax
jmp 0x4882ca
mov edi, dword [esi + 8]
lea eax, [edi - 1]
mov dword [esi + 8], eax
test edi, edi
jg 0x4882e6
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00702c78
jmp 0x4882e6
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x30]
lea edx, [ebp - 0xe4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006de294
sub esp, 4
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov esi, eax
mov edi, dword [ebp - 0x30]
sub edi, 0xc
mov eax, 0x7bf7a4
cmp eax, edi
je 0x488384
cmp dword [0x8e6f60], 0
je 0x488344
mov dword [esp + 4], 0xffffffff
lea eax, [edi + 8]
mov dword [esp], eax
call fcn.006b2de0
mov dword [ebp - 0xfc], eax
jmp 0x488351
mov eax, dword [edi + 8]
mov dword [ebp - 0xfc], eax
dec eax
mov dword [edi + 8], eax
cmp dword [ebp - 0xfc], 0
jg 0x488384
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00702c78
jmp 0x488384
mov edx, esi
test dl, dl
je 0x488545
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 - 0xc0]
mov dword [esp], eax
call fcn.0070342c
mov eax, dword [ebp - 0xc4]
test al, 3
jne 0x4883d5
mov esi, 0
jmp 0x4883de
mov eax, dword [ebp - 0xc0]
mov esi, dword [eax - 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], eax
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.00717e3c
jmp 0x488416
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0070479c
jmp 0x48842a
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x58c]
mov dword [esp + 4], str.SELECT__id__FROM__guilds__WHERE__ownerid__
lea eax, [ebp - 0xe8]
mov dword [esp], eax
call fcn.0076107c
mov dword [esp + 4], esi
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 - 0x24]
lea edx, [ebp - 0xe4]
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 esi
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.0070479c
jmp 0x4884af
test ebx, ebx
je 0x488545
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x1b]
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 0x488503
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x10]
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00487b00
mov bl, al
jmp 0x488547
mov bl, 0
lea eax, [ebp - 0xf0]
mov dword [esp], eax
call fcn.006668d4
mov al, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret