Function at 0x418f80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x4f8], eax
call fcn.00418e50
test eax, eax
je 0x418fc2
mov al, 3
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418fc7
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x419003
nop word [eax + eax]
mov dl, byte [eax + esi]
cmp dl, 0x20
je 0x419134
cmp dl, 0x22
je 0x419134
cmp dl, 0x27
je 0x419134
inc eax
cmp eax, ecx
jl 0x418fe0
push edi
push esi
push str.WZ_GuildCreate__s__s
push 0x446e50
call fcn.0041ad00
add esp, 0x10
test al, al
je 0x41928d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41928d
push 0x447a7e
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
test eax, eax
jne 0x419265
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x50fc10
push 0
push dword [ebp - 0x4f8]
mov dword [0x50fc10], 0x20
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebp + 0x18]
push esi
push eax
push str.UPDATE_Guild_SET_G_Mark__G_Type_d_WHERE_G_Name_s
push 0x446e50
call fcn.0041ad00
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d_WHERE_Name_s
push 0x446e50
call fcn.0041ad00
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea ecx, [ebp - 0x4f4]
call fcn.00418920
push esi
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x419148
or eax, eax
jmp 0x419159
mov al, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 0x14
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x4f4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi + 8]
movq xmm0, qword [esi]
mov byte [ebp - 0x4db], al
movzx eax, word [edi + 8]
mov word [ebp - 0x4d2], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x4d0], al
mov al, byte [ebp + 0x18]
mov byte [ebp - 0x4e4], al
mov eax, dword [ebp - 0x4f8]
movq qword [ebp - 0x4e3], xmm0
movq xmm0, qword [edi]
movq qword [ebp - 0x4da], xmm0
movups xmm0, xmmword [eax]
mov byte [ebp - 0x467], 0x80
movups xmmword [ebp - 0x493], xmm0
movups xmm0, xmmword [eax + 0x10]
movzx eax, word [edi + 8]
mov word [ebp - 0x46a], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x468], al
mov eax, 0xffff
movups xmmword [ebp - 0x483], xmm0
mov word [ebp - 0x466], ax
movq xmm0, qword [edi]
mov eax, dword [0x446b10]
movq qword [ebp - 0x472], xmm0
cmp eax, dword [0x446b14]
je 0x41923f
mov edi, eax
lea esi, [ebp - 0x4f4]
mov ecx, 0x139
mov al, 1
rep movsd dword es:[edi], dword [esi]
add dword [0x446b10], 0x4e4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x4f4]
push ecx
push eax
mov ecx, 0x446b0c
call fcn.00419ac0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, 2
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 0x14