Function at 0x412950
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42efb0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x500
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
push esi
mov dword [ebp - 0x504], eax
call fcn.00412820
test eax, eax
je 0x4129b1
mov al, 3
jmp 0x412c87
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4129b6
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x4129dc
mov dl, byte [eax + esi]
cmp dl, 0x20
je 0x412a1e
cmp dl, 0x22
je 0x412a1e
cmp dl, 0x27
je 0x412a1e
inc eax
cmp eax, ecx
jl 0x4129c5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x508], esp
push str._a_zA_Z0_9___
call fcn.00401f80
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push esi
call fcn.00401f80
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00405170
test al, al
jne 0x412a25
cmp dword [0x5d26fc], 0
jne 0x412a25
mov al, 4
jmp 0x412c87
push edi
push esi
push str.WZ_GuildCreate__s__s
push 0x43edd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x412c6b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412c6b
push 0x4405be
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
test eax, eax
jne 0x412c53
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x5d08e0
push 0
push dword [ebp - 0x504]
mov dword [0x5d08e0], 0x20
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebx + 0x18]
push esi
push eax
push str.UPDATE_Guild_SET_G_Mark__G_Type_d_WHERE_G_Name_s
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d_WHERE_Name_s
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea ecx, [ebp - 0x500]
call fcn.004122f0
push esi
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
push 0x43edd8
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x412b56
or eax, eax
jmp 0x412b67
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x500], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi + 8]
movq xmm0, qword [esi]
mov byte [ebp - 0x4e7], al
movzx eax, word [edi + 8]
mov word [ebp - 0x4de], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x4dc], al
mov al, byte [ebx + 0x18]
mov byte [ebp - 0x4f0], al
mov eax, dword [ebp - 0x504]
movq qword [ebp - 0x4ef], xmm0
movq xmm0, qword [edi]
movq qword [ebp - 0x4e6], xmm0
movups xmm0, xmmword [eax]
mov byte [ebp - 0x473], 0x80
movups xmmword [ebp - 0x49f], xmm0
movups xmm0, xmmword [eax + 0x10]
movzx eax, word [edi + 8]
mov word [ebp - 0x476], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x474], al
mov eax, 0xffff
movups xmmword [ebp - 0x48f], xmm0
mov word [ebp - 0x472], ax
movq xmm0, qword [edi]
mov eax, dword [0x43eb18]
movq qword [ebp - 0x47e], xmm0
cmp eax, dword [0x43eb1c]
je 0x412c3d
mov edi, eax
lea esi, [ebp - 0x500]
mov ecx, 0x139
mov al, 1
rep movsd dword es:[edi], dword [esi]
add dword [0x43eb18], 0x4e4
jmp 0x412c87
lea ecx, [ebp - 0x500]
push ecx
push eax
mov ecx, 0x43eb14
call fcn.004134b0
mov al, 1
jmp 0x412c87
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, 2
jmp 0x412c87
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417477
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14