Function at 0x413d40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6e0
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x6e0], ebx
call fcn.00413b80
test eax, eax
je 0x413d84
mov al, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413d90
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x413dc3
nop
mov dl, byte [esi + eax]
cmp dl, 0x20
je 0x413f6c
cmp dl, 0x22
je 0x413f6c
cmp dl, 0x27
je 0x413f6c
inc eax
cmp eax, ecx
jl 0x413da0
push edi
push esi
push str.WZ_GuildCreate__s__s
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x413fc2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x413fc2
push 0x4482be
call fcn.00420b26
add esp, 4
test eax, eax
jne 0x413fa8
call fcn.00417020
push 0x20
push ebx
push 1
call fcn.00417390
mov bl, byte [ebp + 0x18]
push esi
movzx eax, bl
push eax
push str.UPDATE_Guild_SET_G_Mark__G_Type_d_WHERE_G_Name_s
push 0x447690
call fcn.00416db0
add esp, 0x10
call fcn.00417020
push edi
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d__Devote__0_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0x10
call fcn.00417020
lea ecx, [ebp - 0x6dc]
call fcn.004135d0
push esi
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
call fcn.00417090
mov dword [ebp - 0x6dc], eax
call fcn.00417020
mov al, byte [esi + 8]
movq xmm0, qword [esi]
mov byte [ebp - 0x6c3], al
movzx eax, word [edi + 8]
mov word [ebp - 0x6ba], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x6b8], al
mov eax, dword [ebp - 0x6e0]
movq qword [ebp - 0x6cb], xmm0
movq xmm0, qword [edi]
movq qword [ebp - 0x6c2], xmm0
movups xmm0, xmmword [eax]
mov byte [ebp - 0x6cc], bl
mov byte [ebp - 0x645], 0x80
movups xmmword [ebp - 0x67b], xmm0
mov dword [ebp - 0x654], 0
movups xmm0, xmmword [eax + 0x10]
movzx eax, word [edi + 8]
mov word [ebp - 0x648], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x646], al
mov eax, 0xffff
movups xmmword [ebp - 0x66b], xmm0
mov word [ebp - 0x644], ax
movq xmm0, qword [edi]
mov eax, dword [0x4429c8]
movq qword [ebp - 0x650], xmm0
mov dword [ebp - 0x658], 0
cmp dword [0x4429cc], eax
je 0x413f81
mov edi, eax
lea esi, [ebp - 0x6dc]
mov ecx, 0x1b3
mov al, 1
rep movsd dword es:[edi], dword [esi]
add dword [0x4429c8], 0x6cc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 0x14
mov al, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x6dc]
push ecx
push eax
mov ecx, 0x4429c4
call fcn.00414530
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 0x14
call fcn.00417020
mov al, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 0x14
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret 0x14