Function at 0x413d60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x44000c]
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.00413c20
test eax, eax
je 0x413da2
mov al, 3
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004197fb
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413da7
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x413de3
nop word [eax + eax]
mov dl, byte [esi + eax]
cmp dl, 0x20
je 0x413f1e
cmp dl, 0x22
je 0x413f1e
cmp dl, 0x27
je 0x413f1e
inc eax
cmp eax, ecx
jl 0x413dc0
push edi
push esi
push str.WZ_GuildCreate__s__s
push 0x440e30
call fcn.00416550
add esp, 0x10
test al, al
je 0x414077
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x414077
push 0x441a62
call fcn.00422137
add esp, 4
push dword [0x440e3c]
test eax, eax
jne 0x41404f
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x5d1bf4
push 0
push dword [ebp - 0x4f8]
mov dword [0x5d1bf4], 0x20
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebp + 0x18]
push esi
push 0xf00
push 0xf00
push eax
push str.UPDATE_Guild_SET_G_Mark__G_Type_d_WarehouseCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_G_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x18
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d__G_WareStatus1_WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea ecx, [ebp - 0x4f4]
call fcn.00413730
push esi
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
push 0x440e30
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x413f32
or eax, eax
jmp 0x413f43
mov al, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004197fb
mov esp, ebp
pop ebp
ret 0x14
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x4f4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
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 [0x440af8]
movq qword [ebp - 0x472], xmm0
cmp eax, dword [0x440afc]
je 0x414029
mov edi, eax
lea esi, [ebp - 0x4f4]
mov ecx, 0x139
mov al, 1
rep movsd dword es:[edi], dword [esi]
add dword [0x440af8], 0x4e4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004197fb
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x4f4]
push ecx
push eax
mov ecx, 0x440af4
call fcn.004148b0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004197fb
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, 2
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004197fb
mov esp, ebp
pop ebp
ret 0x14
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004197fb
mov esp, ebp
pop ebp
ret 0x14